OCC Main Page | DataExchange | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

DataExchange
TKVRML
VrmlData


VrmlData_Box Class Reference

#include <VrmlData_Box.hxx>

Inheritance diagram for VrmlData_Box:

Inheritance graph
[legend]

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 Standard_EXPORT const Handle (TopoDS_TShape)&TShape()
virtual Standard_EXPORT Handle (VrmlData_Node) Clone(const Handle(VrmlData_Node)&theOther) const
virtual Standard_EXPORT VrmlData_ErrorStatus Read (VrmlData_InBuffer &theBuffer)
virtual Standard_EXPORT VrmlData_ErrorStatus Write (const char *thePrefix) const

Private Attributes

gp_XYZ mySize

Detailed Description

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.


Constructor & Destructor Documentation

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


Member Function Documentation

virtual Standard_EXPORT VrmlData_Box::Handle VrmlData_Node   )  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 Standard_EXPORT const VrmlData_Box::Handle TopoDS_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 Standard_EXPORT 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 Standard_EXPORT VrmlData_ErrorStatus VrmlData_Box::Write const char *  thePrefix  )  const [virtual]
 

Write the Node to output stream.

Reimplemented from VrmlData_Node.


Field Documentation

gp_XYZ VrmlData_Box::mySize [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 14:46:09 2008 for OpenCASCADE by  doxygen 1.4.1