![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
A framework to define the display of datums. More...
#include <Prs3d_DatumAspect.hxx>

Public Member Functions | |
| Prs3d_DatumAspect () | |
| An empty constructor. | |
| const occ::handle< Prs3d_LineAspect > & | LineAspect (Prs3d_DatumParts thePart) const |
| Returns line aspect for specified part. | |
| const occ::handle< Prs3d_ShadingAspect > & | ShadingAspect (Prs3d_DatumParts thePart) const |
| Returns shading aspect for specified part. | |
| const occ::handle< Prs3d_TextAspect > & | TextAspect (Prs3d_DatumParts thePart) const |
| Returns the text attributes for rendering label of specified part (Prs3d_DatumParts_XAxis/Prs3d_DatumParts_YAxis/Prs3d_DatumParts_ZAxis). | |
| void | SetTextAspect (const occ::handle< Prs3d_TextAspect > &theTextAspect) |
| Sets text attributes for rendering labels. | |
| const occ::handle< Prs3d_PointAspect > & | PointAspect () const |
| Returns the point aspect of origin wireframe presentation. | |
| void | SetPointAspect (const occ::handle< Prs3d_PointAspect > &theAspect) |
| Returns the point aspect of origin wireframe presentation. | |
| const occ::handle< Prs3d_ArrowAspect > & | ArrowAspect () const |
| Returns the arrow aspect of presentation. | |
| void | SetArrowAspect (const occ::handle< Prs3d_ArrowAspect > &theAspect) |
| Sets the arrow aspect of presentation. | |
| bool | DrawDatumPart (Prs3d_DatumParts thePart) const |
| Returns true if the given part is used in axes of aspect. | |
| void | SetDrawDatumAxes (Prs3d_DatumAxes theType) |
| Sets the axes used in the datum aspect. | |
| Prs3d_DatumAxes | DatumAxes () const |
| Returns axes used in the datum aspect. | |
| double | Attribute (Prs3d_DatumAttribute theType) const |
| Returns the attribute of the datum type. | |
| void | SetAttribute (Prs3d_DatumAttribute theType, const double theValue) |
| Sets the attribute of the datum type. | |
| double | AxisLength (Prs3d_DatumParts thePart) const |
| Returns the length of the displayed first axis. | |
| void | SetAxisLength (double theL1, double theL2, double theL3) |
| Sets the lengths of the three axes. | |
| bool | ToDrawLabels () const |
| void | SetDrawLabels (bool theToDraw) |
| Sets option to draw or not to draw text labels for axes. | |
| void | SetToDrawLabels (bool theToDraw) |
| bool | ToDrawArrows () const |
| void | SetDrawArrows (bool theToDraw) |
| Sets option to draw or not arrows for axes. | |
| void | CopyAspectsFrom (const occ::handle< Prs3d_DatumAspect > &theOther) |
| Performs deep copy of attributes from another aspect instance. | |
| void | DumpJson (Standard_OStream &theOStream, int theDepth=-1) const override |
| 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 ()=default |
| Destructor must be virtual. | |
| virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
| Returns a type descriptor about this object. | |
| bool | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
| Returns a true value if this is an instance of Type. | |
| bool | IsInstance (const char *const theTypeName) const |
| Returns a true value if this is an instance of TypeName. | |
| bool | 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. | |
| bool | IsKind (const char *const 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. | |
| int | GetRefCount () const noexcept |
| Get the reference counter of this object. | |
| void | IncrementRefCounter () noexcept |
| Increments the reference counter of this object. Uses relaxed memory ordering since incrementing only requires atomicity, not synchronization with other memory operations. | |
| int | DecrementRefCounter () noexcept |
| Decrements the reference counter of this object; returns the decremented value. Uses release ordering for the decrement to ensure all writes to the object are visible before the count reaches zero. An acquire fence is added only when the count reaches zero, ensuring proper synchronization before deletion. This is more efficient than using acq_rel for every decrement. | |
| virtual void | Delete () const |
| Memory deallocator for transient classes. | |
Static Public Member Functions | |
| static Prs3d_DatumParts | ArrowPartForAxis (Prs3d_DatumParts thePart) |
| Returns type of arrow for a type of axis. | |
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. | |
Data Fields | |
| This method is deprecated TextAspect() with axis parameter should be called instead") const occ occ::handle<Prs3d_LineAspect> | myLineAspects [Prs3d_DatumParts_NB] |
| Returns the text attributes for rendering labels. | |
| occ::handle< Prs3d_TextAspect > | myTextAspects [Prs3d_DatumParts_NB] |
| occ::handle< Prs3d_PointAspect > | myPointAspect |
| occ::handle< Prs3d_ArrowAspect > | myArrowAspect |
| double | myAttributes [Prs3d_DatumAttribute_NB] |
| Prs3d_DatumAxes | myAxes |
| bool | myToDrawLabels |
| bool | myToDrawArrows |
Additional Inherited Members | |
Public Types inherited from Standard_Transient | |
| typedef void | base_type |
| Returns a type descriptor about this object. | |
A framework to define the display of datums.
| Prs3d_DatumAspect::Prs3d_DatumAspect | ( | ) |
An empty constructor.
|
inline |
Returns the arrow aspect of presentation.
|
static |
Returns type of arrow for a type of axis.
|
inline |
Returns the attribute of the datum type.
| double Prs3d_DatumAspect::AxisLength | ( | Prs3d_DatumParts | thePart | ) | const |
Returns the length of the displayed first axis.
| void Prs3d_DatumAspect::CopyAspectsFrom | ( | const occ::handle< Prs3d_DatumAspect > & | theOther | ) |
Performs deep copy of attributes from another aspect instance.
|
inline |
Returns axes used in the datum aspect.
| bool Prs3d_DatumAspect::DrawDatumPart | ( | Prs3d_DatumParts | thePart | ) | const |
Returns true if the given part is used in axes of aspect.
|
overridevirtual |
Dumps the content of me into the stream.
Implements Prs3d_BasicAspect.
|
inline |
Returns line aspect for specified part.
|
inline |
Returns the point aspect of origin wireframe presentation.
|
inline |
Sets the arrow aspect of presentation.
|
inline |
Sets the attribute of the datum type.
Sets the lengths of the three axes.
Sets option to draw or not arrows for axes.
|
inline |
Sets the axes used in the datum aspect.
Sets option to draw or not to draw text labels for axes.
|
inline |
Returns the point aspect of origin wireframe presentation.
|
inline |
Sets text attributes for rendering labels.
|
inline |
Returns shading aspect for specified part.
|
inline |
Returns the text attributes for rendering label of specified part (Prs3d_DatumParts_XAxis/Prs3d_DatumParts_YAxis/Prs3d_DatumParts_ZAxis).
|
inline |
|
inline |
| occ::handle<Prs3d_ArrowAspect> Prs3d_DatumAspect::myArrowAspect |
| double Prs3d_DatumAspect::myAttributes[Prs3d_DatumAttribute_NB] |
| Prs3d_DatumAxes Prs3d_DatumAspect::myAxes |
| This method is deprecated TextAspect () with axis parameter should be called instead") const occ occ::handle<Prs3d_LineAspect> Prs3d_DatumAspect::myLineAspects[Prs3d_DatumParts_NB] |
Returns the text attributes for rendering labels.
| occ::handle<Prs3d_PointAspect> Prs3d_DatumAspect::myPointAspect |
| occ::handle<Prs3d_TextAspect> Prs3d_DatumAspect::myTextAspects[Prs3d_DatumParts_NB] |
| bool Prs3d_DatumAspect::myToDrawArrows |
| bool Prs3d_DatumAspect::myToDrawLabels |