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

DataExchange
TKVRML
VrmlData


VrmlData_Group Class Reference

#include <VrmlData_Group.hxx>

Inheritance diagram for VrmlData_Group:

Inheritance graph
[legend]

Public Types

typedef VrmlData_ListOfNode::Iterator Iterator

Public Member Functions

 VrmlData_Group (const Standard_Boolean isTransform=Standard_False)
Standard_EXPORT VrmlData_Group (const VrmlData_Scene &theScene, const char *theName, const Standard_Boolean isTransform=Standard_False)
 Handle (VrmlData_Node)&AddNode(const Handle(VrmlData_Node)&theNode)
Standard_EXPORT Standard_Boolean RemoveNode (const Handle(VrmlData_Node)&theNode)
Iterator NodeIterator () const
const Bnd_B3f & Box () const
void SetBox (const Bnd_B3f &theBox)
Standard_EXPORT Standard_Boolean SetTransform (const gp_Trsf &theTrsf)
const gp_Trsf & GetTransform () const
Standard_Boolean IsTransform () const
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
Standard_EXPORT Handle (VrmlData_Node) FindNode(const char *theName
Standard_EXPORT void Shape (TopoDS_Shape &theShape, VrmlData_DataMapOfShapeAppearance *pMapApp)

Data Fields

Standard_EXPORT gp_Trsf &theLocation const

Protected Member Functions

Standard_EXPORT VrmlData_ErrorStatus openFile (Standard_IStream &theStream, const TCollection_AsciiString &theFilename)

Private Attributes

Standard_Boolean myIsTransform
VrmlData_ListOfNode myNodes
Bnd_B3f myBox
gp_Trsf myTrsf

Detailed Description

Implementation of node "Group"


Member Typedef Documentation

typedef VrmlData_ListOfNode::Iterator VrmlData_Group::Iterator
 


Constructor & Destructor Documentation

VrmlData_Group::VrmlData_Group const Standard_Boolean  isTransform = Standard_False  )  [inline]
 

Empty constructor.

Parameters:
isTransform True if the group of type Transform is defined
theAlloc Allocator used for the list of children

Standard_EXPORT VrmlData_Group::VrmlData_Group const VrmlData_Scene theScene,
const char *  theName,
const Standard_Boolean  isTransform = Standard_False
 

Constructor.

Parameters:
theName Name of the Group node
isTransform True if the group of type Transform is defined
theAlloc Allocator used for the list of children


Member Function Documentation

const Bnd_B3f& VrmlData_Group::Box  )  const [inline]
 

Query the bounding box.

const gp_Trsf& VrmlData_Group::GetTransform  )  const [inline]
 

Query the transform value. For group without transformation this always returns Identity

Standard_EXPORT VrmlData_Group::Handle VrmlData_Node   )  const [virtual]
 

Find a node by its name, inside this Group

Parameters:
theName Name of the node to search for.
theLocation Location of the found node with respect to this Group.

Reimplemented from VrmlData_Node.

virtual Standard_EXPORT VrmlData_Group::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.

VrmlData_Group::Handle VrmlData_Node   )  const [inline, virtual]
 

Add one node to the Group.

Reimplemented from VrmlData_Node.

Standard_Boolean VrmlData_Group::IsTransform  )  const [inline]
 

Query if the node is Transform type.

Iterator VrmlData_Group::NodeIterator  )  const [inline]
 

Create iterator on nodes belonging to the Group.

Standard_EXPORT VrmlData_ErrorStatus VrmlData_Group::openFile Standard_IStream &  theStream,
const TCollection_AsciiString &  theFilename
[protected]
 

Try to open a file by the given filename, using the search directories list myVrmlDir of the Scene.

virtual Standard_EXPORT VrmlData_ErrorStatus VrmlData_Group::Read VrmlData_InBuffer theBuffer  )  [virtual]
 

Fill the Node internal data from the given input stream.

Implements VrmlData_Node.

Standard_EXPORT Standard_Boolean VrmlData_Group::RemoveNode const Handle(VrmlData_Node)&  theNode  ) 
 

Remove one node from the Group.

Returns:
True if the node was located and removed, False if none removed.

void VrmlData_Group::SetBox const Bnd_B3f &  theBox  )  [inline]
 

Set the bounding box.

Standard_EXPORT Standard_Boolean VrmlData_Group::SetTransform const gp_Trsf &  theTrsf  ) 
 

Set the transformation. Returns True if the group is Transform type, otherwise do nothing and return False.

Standard_EXPORT void VrmlData_Group::Shape TopoDS_Shape &  theShape,
VrmlData_DataMapOfShapeAppearance pMapApp
 

Get the shape representing the group geometry.

virtual Standard_EXPORT VrmlData_ErrorStatus VrmlData_Group::Write const char *  thePrefix  )  const [virtual]
 

Write the Node to output stream.

Reimplemented from VrmlData_Node.


Field Documentation

Standard_EXPORT gp_Trsf& theLocation VrmlData_Group::const
 

Bnd_B3f VrmlData_Group::myBox [private]
 

Standard_Boolean VrmlData_Group::myIsTransform [private]
 

VrmlData_ListOfNode VrmlData_Group::myNodes [private]
 

gp_Trsf VrmlData_Group::myTrsf [private]
 


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