Open CASCADE Technology
6.5.4
|
#include <VrmlData_ArrayVec3d.hxx>
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_XYZ * | Values () 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_XYZ & | Value (const Standard_Size i) const |
Protected Attributes | |
const gp_XYZ * | myArray |
Standard_Size | myLength |
Implementatioon of basic node for Coordinate, Normal and Color (array of triplets).
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
Create a data array and assign the field myArray.
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
i | index in the array of vectors [0 .. N-1] |
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.
const gp_XYZ* VrmlData_ArrayVec3d::myArray [protected] |
Standard_Size VrmlData_ArrayVec3d::myLength [protected] |