Open CASCADE Technology
6.5.4
|
#include <VrmlData_Box.hxx>
Public Member Functions | |
VrmlData_Box () | |
VrmlData_Box (const VrmlData_Scene &theScene, const char *theName, const Standard_Real sizeX=2., const Standard_Real sizeY=2., const Standard_Real sizeZ=2.) | |
const gp_XYZ & | Size () const |
void | SetSize (const gp_XYZ &theSize) |
virtual const Handle < TopoDS_TShape > & | TShape () |
virtual Handle< VrmlData_Node > | Clone (const Handle< VrmlData_Node > &theOther) const |
virtual VrmlData_ErrorStatus | Read (VrmlData_InBuffer &theBuffer) |
virtual VrmlData_ErrorStatus | Write (const char *thePrefix) const |
Inplementation of the Box node. This node is defined by Size vector, assumong that the box center is located in (0., 0., 0.) and that each corner is 0.5*|Size| distance from the center.
VrmlData_Box::VrmlData_Box | ( | ) | [inline] |
Empty constructor
VrmlData_Box::VrmlData_Box | ( | const VrmlData_Scene & | theScene, |
const char * | theName, | ||
const Standard_Real | sizeX = 2. , |
||
const Standard_Real | sizeY = 2. , |
||
const Standard_Real | sizeZ = 2. |
||
) | [inline] |
Constructor
virtual Handle< VrmlData_Node > VrmlData_Box::Clone | ( | const Handle< VrmlData_Node > & | theOther | ) | const [virtual] |
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.
Reimplemented from VrmlData_Node.
virtual VrmlData_ErrorStatus VrmlData_Box::Read | ( | VrmlData_InBuffer & | theBuffer | ) | [virtual] |
Fill the Node internal data from the given input stream.
Implements VrmlData_Node.
void VrmlData_Box::SetSize | ( | const gp_XYZ & | theSize | ) | [inline] |
Set the Box Size
const gp_XYZ& VrmlData_Box::Size | ( | ) | const [inline] |
Query the Box size
virtual const Handle< TopoDS_TShape >& VrmlData_Box::TShape | ( | ) | [virtual] |
Query the primitive topology. This method returns a Null shape if there is an internal error during the primitive creation (zero radius, etc.)
Implements VrmlData_Geometry.
virtual VrmlData_ErrorStatus VrmlData_Box::Write | ( | const char * | thePrefix | ) | const [virtual] |
Write the Node to output stream.
Reimplemented from VrmlData_Node.