Open CASCADE Technology 6.6.0
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

VrmlData_ArrayVec3d::VrmlData_ArrayVec3d ( ) [inline]

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

Standard_Boolean VrmlData_ArrayVec3d::AllocateValues ( const Standard_Size  theLength)

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.

Standard_Size VrmlData_ArrayVec3d::Length ( void  ) const [inline]

Query the number of vectors

VrmlData_ErrorStatus VrmlData_ArrayVec3d::ReadArray ( VrmlData_InBuffer theBuffer,
const char *  theName,
const Standard_Boolean  isScale 
)

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

const gp_XYZ& VrmlData_ArrayVec3d::Value ( const Standard_Size  i) const [protected]

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.)
const gp_XYZ* VrmlData_ArrayVec3d::Values ( ) const [inline]

Query the array

VrmlData_ErrorStatus VrmlData_ArrayVec3d::WriteArray ( const char *  theName,
const Standard_Boolean  isScale 
) const

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


Field Documentation


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines