Open CASCADE Technology 7.8.0
|
Low-level graphic structure interface. More...
#include <Graphic3d_CStructure.hxx>
Data Structures | |
class | SubclassGroupIterator |
Auxiliary wrapper to iterate through group sequence. More... | |
class | SubclassStructIterator |
Auxiliary wrapper to iterate through structure list. More... | |
Public Member Functions | |
const Handle< Graphic3d_GraphicDriver > & | GraphicDriver () const |
const Graphic3d_SequenceOfGroup & | Groups () const |
const Handle< TopLoc_Datum3D > & | Transformation () const |
Return transformation. | |
virtual void | SetTransformation (const Handle< TopLoc_Datum3D > &theTrsf) |
Assign transformation. | |
const Handle< Graphic3d_TransformPers > & | TransformPersistence () const |
Return transformation persistence. | |
virtual void | SetTransformPersistence (const Handle< Graphic3d_TransformPers > &theTrsfPers) |
Set transformation persistence. | |
bool | HasGroupTransformPersistence () const |
Return TRUE if some groups might have transform persistence; FALSE by default. | |
void | SetGroupTransformPersistence (bool theValue) |
Set if some groups might have transform persistence. | |
const Handle< Graphic3d_SequenceOfHClipPlane > & | ClipPlanes () const |
void | SetClipPlanes (const Handle< Graphic3d_SequenceOfHClipPlane > &thePlanes) |
Pass clip planes to the associated graphic driver structure. | |
const Graphic3d_BndBox3d & | BoundingBox () const |
Graphic3d_BndBox3d & | ChangeBoundingBox () |
bool | IsVisible () const |
Return structure visibility flag. | |
bool | IsVisible (const Standard_Integer theViewId) const |
Return structure visibility considering both View Affinity and global visibility state. | |
virtual void | SetZLayer (const Graphic3d_ZLayerId theLayerIndex) |
Set z layer ID to display the structure in specified layer. | |
Graphic3d_ZLayerId | ZLayer () const |
Get z layer ID. | |
const Handle< Graphic3d_PresentationAttributes > & | HighlightStyle () const |
Returns valid handle to highlight style of the structure in case if highlight flag is set to true. | |
Standard_Integer | Identification () const |
Return structure id (generated by Graphic3d_GraphicDriver::NewIdentification() during structure construction). | |
Graphic3d_DisplayPriority | Priority () const |
Return structure display priority. | |
void | SetPriority (Graphic3d_DisplayPriority thePriority) |
Set structure display priority. | |
Graphic3d_DisplayPriority | PreviousPriority () const |
Return previous structure display priority. | |
void | SetPreviousPriority (Graphic3d_DisplayPriority thePriority) |
Set previous structure display priority. | |
Standard_Boolean | IsCulled () const |
Returns FALSE if the structure hits the current view volume, otherwise returns TRUE. | |
void | SetCulled (Standard_Boolean theIsCulled) const |
Marks structure as culled/not culled - note that IsAlwaysRendered() is ignored here! | |
void | MarkAsNotCulled () const |
Marks structure as overlapping the current view volume one. The method is called during traverse of BVH tree. | |
Standard_Boolean | BndBoxClipCheck () const |
Returns whether check of object's bounding box clipping is enabled before drawing of object; TRUE by default. | |
void | SetBndBoxClipCheck (Standard_Boolean theBndBoxClipCheck) |
Enable/disable check of object's bounding box clipping before drawing of object. | |
Standard_Boolean | IsAlwaysRendered () const |
Checks if the structure should be included into BVH tree or not. | |
virtual void | OnVisibilityChanged ()=0 |
Update structure visibility state. | |
virtual void | Clear ()=0 |
Clear graphic data. | |
virtual void | Connect (Graphic3d_CStructure &theStructure)=0 |
Connect other structure to this one. | |
virtual void | Disconnect (Graphic3d_CStructure &theStructure)=0 |
Disconnect other structure to this one. | |
virtual void | GraphicHighlight (const Handle< Graphic3d_PresentationAttributes > &theStyle)=0 |
Highlights structure with the given style. | |
virtual void | GraphicUnhighlight ()=0 |
Unhighlights the structure and invalidates pointer to structure's highlight style. | |
virtual Handle< Graphic3d_CStructure > | ShadowLink (const Handle< Graphic3d_StructureManager > &theManager) const =0 |
Create shadow link to this structure. | |
virtual Handle< Graphic3d_Group > | NewGroup (const Handle< Graphic3d_Structure > &theStruct)=0 |
Create new group within this structure. | |
virtual void | RemoveGroup (const Handle< Graphic3d_Group > &theGroup)=0 |
Remove group from this structure. | |
virtual void | updateLayerTransformation () |
Update render transformation matrix. | |
virtual void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const |
Dumps the content of me into the stream. | |
Public Member Functions inherited from Standard_Transient | |
Standard_Transient () | |
Empty constructor. | |
Standard_Transient (const Standard_Transient &) | |
Copy constructor – does nothing. | |
Standard_Transient & | operator= (const Standard_Transient &) |
Assignment operator, needed to avoid copying reference counter. | |
virtual | ~Standard_Transient () |
Destructor must be virtual. | |
virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
Returns a type descriptor about this object. | |
Standard_Boolean | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
Returns a true value if this is an instance of Type. | |
Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
Returns a true value if this is an instance of TypeName. | |
Standard_Boolean | IsKind (const opencascade::handle< Standard_Type > &theType) const |
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. | |
Standard_Boolean | IsKind (const Standard_CString theTypeName) const |
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. | |
Standard_Transient * | This () const |
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. | |
Standard_Integer | GetRefCount () const noexcept |
Get the reference counter of this object. | |
void | IncrementRefCounter () noexcept |
Increments the reference counter of this object. | |
Standard_Integer | DecrementRefCounter () noexcept |
Decrements the reference counter of this object; returns the decremented value. | |
virtual void | Delete () const |
Memory deallocator for transient classes. | |
Data Fields | |
Handle< Graphic3d_ViewAffinity > | ViewAffinity |
view affinity mask | |
unsigned | IsInfinite: 1 |
unsigned | stick: 1 |
displaying state - should be set when structure has been added to scene graph (but can be in hidden state) | |
unsigned | highlight: 1 |
unsigned | visible: 1 |
visibility flag - can be used to suppress structure while leaving it in the scene graph | |
unsigned | HLRValidation: 1 |
unsigned | IsForHighlight: 1 |
unsigned | IsMutable: 1 |
unsigned | Is2dText: 1 |
Protected Member Functions | |
Graphic3d_CStructure (const Handle< Graphic3d_StructureManager > &theManager) | |
Create empty structure. | |
Protected Attributes | |
Handle< Graphic3d_GraphicDriver > | myGraphicDriver |
Graphic3d_SequenceOfGroup | myGroups |
Graphic3d_BndBox3d | myBndBox |
Handle< TopLoc_Datum3D > | myTrsf |
Handle< Graphic3d_TransformPers > | myTrsfPers |
Handle< Graphic3d_SequenceOfHClipPlane > | myClipPlanes |
Handle< Graphic3d_PresentationAttributes > | myHighlightStyle |
Standard_Integer | myId |
Current highlight style; is set only if highlight flag is true. | |
Graphic3d_ZLayerId | myZLayer |
Graphic3d_DisplayPriority | myPriority |
Graphic3d_DisplayPriority | myPreviousPriority |
Standard_Boolean | myIsCulled |
A status specifying is structure needs to be rendered after BVH tree traverse. | |
Standard_Boolean | myBndBoxClipCheck |
Flag responsible for checking of bounding box clipping before drawing of object. | |
Standard_Boolean | myHasGroupTrsf |
flag specifying that some groups might have transform persistence | |
Additional Inherited Members | |
Public Types inherited from Standard_Transient | |
typedef void | base_type |
Returns a type descriptor about this object. | |
Static Public Member Functions inherited from Standard_Transient | |
static constexpr const char * | get_type_name () |
Returns a type descriptor about this object. | |
static const opencascade::handle< Standard_Type > & | get_type_descriptor () |
Returns type descriptor of Standard_Transient class. | |
Low-level graphic structure interface.
|
protected |
Create empty structure.
|
inline |
Returns whether check of object's bounding box clipping is enabled before drawing of object; TRUE by default.
|
inline |
|
inline |
|
pure virtual |
Clear graphic data.
Implemented in OpenGl_Structure.
|
inline |
|
pure virtual |
Connect other structure to this one.
Implemented in OpenGl_StructureShadow, and OpenGl_Structure.
|
pure virtual |
Disconnect other structure to this one.
Implemented in OpenGl_StructureShadow, and OpenGl_Structure.
|
virtual |
Dumps the content of me into the stream.
Reimplemented in OpenGl_Structure.
|
inline |
|
pure virtual |
Highlights structure with the given style.
Implemented in OpenGl_Structure.
|
pure virtual |
Unhighlights the structure and invalidates pointer to structure's highlight style.
Implemented in OpenGl_Structure.
|
inline |
|
inline |
Return TRUE if some groups might have transform persistence; FALSE by default.
|
inline |
Returns valid handle to highlight style of the structure in case if highlight flag is set to true.
|
inline |
Return structure id (generated by Graphic3d_GraphicDriver::NewIdentification() during structure construction).
|
inline |
Checks if the structure should be included into BVH tree or not.
|
inline |
Returns FALSE if the structure hits the current view volume, otherwise returns TRUE.
|
inline |
Return structure visibility flag.
|
inline |
Return structure visibility considering both View Affinity and global visibility state.
|
inline |
Marks structure as overlapping the current view volume one. The method is called during traverse of BVH tree.
|
pure virtual |
Create new group within this structure.
Implemented in OpenGl_Structure.
|
pure virtual |
Update structure visibility state.
Implemented in OpenGl_Structure.
|
inline |
Return previous structure display priority.
|
inline |
Return structure display priority.
|
pure virtual |
Remove group from this structure.
Implemented in OpenGl_Structure.
|
inline |
Enable/disable check of object's bounding box clipping before drawing of object.
|
inline |
Pass clip planes to the associated graphic driver structure.
|
inline |
Marks structure as culled/not culled - note that IsAlwaysRendered() is ignored here!
|
inline |
Set if some groups might have transform persistence.
|
inline |
Set previous structure display priority.
|
inline |
Set structure display priority.
|
inlinevirtual |
Assign transformation.
Reimplemented in OpenGl_Structure.
|
inlinevirtual |
Set transformation persistence.
Reimplemented in OpenGl_Structure.
|
inlinevirtual |
Set z layer ID to display the structure in specified layer.
Reimplemented in OpenGl_Structure.
|
pure virtual |
Create shadow link to this structure.
Implemented in OpenGl_Structure.
|
inline |
Return transformation.
|
inline |
Return transformation persistence.
|
inlinevirtual |
Update render transformation matrix.
Reimplemented in OpenGl_Structure.
|
inline |
Get z layer ID.
unsigned Graphic3d_CStructure::highlight |
unsigned Graphic3d_CStructure::HLRValidation |
unsigned Graphic3d_CStructure::Is2dText |
unsigned Graphic3d_CStructure::IsForHighlight |
unsigned Graphic3d_CStructure::IsInfinite |
unsigned Graphic3d_CStructure::IsMutable |
|
protected |
|
protected |
Flag responsible for checking of bounding box clipping before drawing of object.
|
protected |
|
protected |
|
protected |
|
protected |
flag specifying that some groups might have transform persistence
|
protected |
|
protected |
Current highlight style; is set only if highlight flag is true.
|
mutableprotected |
A status specifying is structure needs to be rendered after BVH tree traverse.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
unsigned Graphic3d_CStructure::stick |
displaying state - should be set when structure has been added to scene graph (but can be in hidden state)
Handle< Graphic3d_ViewAffinity > Graphic3d_CStructure::ViewAffinity |
view affinity mask
unsigned Graphic3d_CStructure::visible |
visibility flag - can be used to suppress structure while leaving it in the scene graph