Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
VrmlData_ArrayVec3d Class Reference

#include <VrmlData_ArrayVec3d.hxx>

Inheritance diagram for VrmlData_ArrayVec3d:
Inheritance graph
[legend]

Public Member Functions

 VrmlData_ArrayVec3d ()
 VrmlData_ArrayVec3d (const VrmlData_Scene &theScene, const char *theName, const Standard_Size nVec, const gp_XYZ *arrVec)
Standard_Size Length () const
const gp_XYZValues () const
Standard_Boolean AllocateValues (const Standard_Size theLength)
void SetValues (const Standard_Size nValues, const gp_XYZ *arrValues)
VrmlData_ErrorStatus ReadArray (VrmlData_InBuffer &theBuffer, const char *theName, const Standard_Boolean isScale)
VrmlData_ErrorStatus WriteArray (const char *theName, const Standard_Boolean isScale) const
virtual Standard_Boolean IsDefault () const

Protected Member Functions

const gp_XYZValue (const Standard_Size i) const

Protected Attributes

const gp_XYZmyArray
Standard_Size myLength

Detailed Description

Implementatioon of basic node for Coordinate, Normal and Color (array of triplets).


Constructor & Destructor Documentation

Empty constructor

VrmlData_ArrayVec3d::VrmlData_ArrayVec3d ( const VrmlData_Scene theScene,
const char *  theName,
const Standard_Size  nVec,
const gp_XYZ arrVec 
) [inline]

Constructor


Member Function Documentation

Create a data array and assign the field myArray.

Returns:
True if allocation was successful.
virtual Standard_Boolean VrmlData_ArrayVec3d::IsDefault ( ) const [virtual]

Returns True if the node is default, so that it should not be written.

Reimplemented from VrmlData_Node.

Query the number of vectors

Create a copy of this node. If the parameter is null, a new copied node is created. Otherwise new node is not created, but rather the given one is modified. Read the Node from input stream.

void VrmlData_ArrayVec3d::SetValues ( const Standard_Size  nValues,
const gp_XYZ arrValues 
) [inline]

Set the array data

Query one vector

Parameters:
iindex in the array of vectors [0 .. N-1]
Returns:
the vector for the index. If index irrelevant, returns (0., 0., 0.)

Query the array

Write the Node to the output stream currently opened in Scene.


Field Documentation


The documentation for this class was generated from the following file: