Defines a leaf node in the scene graph hiearchy. More...
#include <cadex/ModelData_Part.hxx>
Classes | |
class | CombinedRepresentationVisitor |
Provides combined method Visit() to visit all representations. More... | |
class | RepresentationIterator |
Iterates over model representations. More... | |
class | RepresentationVisitor |
Defines a visitor for model represenations. More... | |
class | VoidRepresentationVisitor |
Element visitor with empty implementation. More... | |
Public Types | |
typedef cadex::internal::ModelData_PartImpl | ImplType |
![]() | |
typedef cadex::internal::ModelData_SceneGraphElementImpl | ImplType |
![]() | |
typedef int | IdType |
Defines a type identifier. | |
Public Member Functions | |
ModelData_Part () | |
ModelData_Part (initialized) | |
ModelData_Part (ImplType *theImpl) | |
ModelData_Part (const Base_UTF16String &theName) | |
ModelData_Part (const ModelData_Representation &theRep, const Base_UTF16String &theName=Base_UTF16String()) | |
ModelData_Part (const ModelData_BRepRepresentation &theRep, const ModelData_PolyRepresentation &theLOD, const Base_UTF16String &theName=Base_UTF16String()) | |
ModelData_Part (const ModelData_BRepRepresentation &theRep, const ModelData_PolyRepresentation &theFineLOD, const ModelData_PolyRepresentation &theCoarseLOD, const Base_UTF16String &theName=Base_UTF16String()) | |
ModelData_Part (const ModelData_BRepRepresentation &theRep, const ModelData_PolyRepresentation &theFineLOD, const ModelData_PolyRepresentation &theMediumLOD, const ModelData_PolyRepresentation &theCoarseLOD, const Base_UTF16String &theName=Base_UTF16String()) | |
void | AddRepresentation (const ModelData_Representation &theRepresentation) |
Adds a representation. | |
void | RemoveRepresentations () |
Remove all representations. | |
ModelData_BRepRepresentation | BRepRepresentation () const |
ModelData_PolyRepresentation | PolyRepresentation (ModelData_RepresentationMask theRepresentationMask) const |
void | Accept (RepresentationVisitor &theVisitor) const |
Accepts a visitor of the associated representations. | |
void | Accept (RepresentationVisitor &theVisitor, int theRepresentationMask) const |
Accepts a visitor of the associated representations. | |
void | Accept (ModelData_Model::ElementVisitor &theVisitor) const |
Accepts an element visitor. | |
![]() | |
ModelData_SceneGraphElement () | |
Constructor. | |
void | SetAppearance (const ModelData_Appearance &theAppearance) |
Sets appearance of the scene graph element. | |
ModelData_Appearance | Appearance () const |
Returns the scene graph element's own appearance. | |
void | AddProperties (const ModelData_PropertyTable &theProperties) |
Adds a property table to the element. | |
ModelData_PropertyTable | Properties () const |
Returns a property table. | |
void | AddPMI (const ModelData_PMITable &thePMI) |
Adds a PMI table to the element. | |
ModelData_PMITable | PMI () const |
Returns a PMI table. | |
void | AddConfigurations (const ModelData_ConfigurationManager &theConfigurations) |
Adds a configuration manager to the element. | |
ModelData_ConfigurationManager | Configurations () const |
Returns a configuration manager. | |
void | AddToLayer (const ModelData_Layer &theLayer) |
Adds element to layer. | |
void | Accept (ModelData_Model::ElementVisitor &theVisitor) const |
Accepts an element visitor. | |
![]() | |
ModelData_BaseObject () | |
Constructor. | |
IdType | TypeId () const |
Returns an object type id. | |
template<typename T > | |
bool | IsOfType () const |
Returns true if the object has a type T. | |
void | SetName (const Base_UTF16String &theName) |
Sets an object name. | |
Base_UTF16String | Name () const |
void | SetUuid (const Base_Uuid &theUuid) |
Base_Uuid | Uuid () const |
void | Nullify () |
Resets reference to implementation object. | |
bool | IsNull () const |
Returns true if the object is nullified. | |
operator bool () const | |
Casts the object to the bool type. | |
internal::ModelData_BaseObjectImpl * | Impl () const |
Return a handle to backend (reserved for internal use). | |
Static Public Member Functions | |
static IdType | GetTypeId () |
Additional Inherited Members | |
![]() | |
ModelData_SceneGraphElement (const internal::ModelData_BaseObjectImpl *theImpl) | |
Constructor (reserved for internal use). | |
ModelData_SceneGraphElement (const internal::ModelData_BaseObjectImpl *theImpl, const Base_UTF16String &theName) | |
Constructor (reserved for internal use). | |
![]() | |
ModelData_BaseObject (const internal::ModelData_BaseObjectImpl *theImpl) | |
Constructor (reserved for internal use). | |
ModelData_BaseObject (const internal::ModelData_BaseObjectImpl *theImpl, const Base_UTF16String &theName) | |
Constructor (reserved for internal use). | |
template<typename T > | |
T * | GetOrCreateImpl () |
Reserved for internal use. | |
Defines a leaf node in the scene graph hiearchy.
A part corresponds to mechanical part or a product in the product structure hieararchy.
A part contains one or several representations: zero or one B-Rep representation, and/or zero, one or multiple polygonal representations.
cadex::ModelData_Part::ModelData_Part | ( | ) |
If theToInitialize is false then creates a null object (see IsNull()).
|
explicit |
Creates a part with a name and single representation.
cadex::ModelData_Part::ModelData_Part | ( | const ModelData_BRepRepresentation & | theRep, |
const ModelData_PolyRepresentation & | theLOD, | ||
const Base_UTF16String & | theName = Base_UTF16String() |
||
) |
Creates a part with a name, B-Rep and one polygonal representations.
cadex::ModelData_Part::ModelData_Part | ( | const ModelData_BRepRepresentation & | theRep, |
const ModelData_PolyRepresentation & | theFineLOD, | ||
const ModelData_PolyRepresentation & | theCoarseLOD, | ||
const Base_UTF16String & | theName = Base_UTF16String() |
||
) |
Creates a part with a name, B-Rep and twp polygonal representations.
void cadex::ModelData_SceneGraphElement::Accept | ( | ModelData_Model::ElementVisitor & | theVisitor | ) | const |
Accepts an element visitor.
The order of visiting depends on the type of this object:
void cadex::ModelData_Part::Accept | ( | RepresentationVisitor & | theVisitor | ) | const |
Accepts a visitor of the associated representations.
Applies theVisitor to each added representation. The order of visiting representations matches the order in which the representations have been added with AddRepresentation().
void cadex::ModelData_Part::Accept | ( | RepresentationVisitor & | theVisitor, |
int | theRepMask | ||
) | const |
Accepts a visitor of the associated representations.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
theRepMask is a bit-wise combination of flags defined in the ModelData_RepresentationMask enumeration.
ModelData_BRepRepresentation cadex::ModelData_Part::BRepRepresentation | ( | ) | const |
Returns a B-Rep representation. Returns null if there is no B-Rep representation.
ModelData_PolyRepresentation cadex::ModelData_Part::PolyRepresentation | ( | ModelData_RepresentationMask | theMask | ) | const |
Returns a polygonal representation that matches the specified mask. Returns null if there is no Poly representation.