Open CASCADE Technology 7.8.0
|
A framework to define the display of datums. More...
#include <Prs3d_DatumAspect.hxx>
Public Member Functions | |
Prs3d_DatumAspect () | |
An empty constructor. | |
const Handle< Prs3d_LineAspect > & | LineAspect (Prs3d_DatumParts thePart) const |
Returns line aspect for specified part. | |
const Handle< Prs3d_ShadingAspect > & | ShadingAspect (Prs3d_DatumParts thePart) const |
Returns shading aspect for specified part. | |
const 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 Handle< Prs3d_TextAspect > &theTextAspect) |
Sets text attributes for rendering labels. | |
const Handle< Prs3d_PointAspect > & | PointAspect () const |
Returns the point aspect of origin wireframe presentation. | |
void | SetPointAspect (const Handle< Prs3d_PointAspect > &theAspect) |
Returns the point aspect of origin wireframe presentation. | |
const Handle< Prs3d_ArrowAspect > & | ArrowAspect () const |
Returns the arrow aspect of presentation. | |
void | SetArrowAspect (const Handle< Prs3d_ArrowAspect > &theAspect) |
Sets the arrow aspect of presentation. | |
Standard_Boolean | 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. | |
Standard_Real | Attribute (Prs3d_DatumAttribute theType) const |
Returns the attribute of the datum type. | |
void | SetAttribute (Prs3d_DatumAttribute theType, const Standard_Real theValue) |
Sets the attribute of the datum type. | |
Standard_Real | AxisLength (Prs3d_DatumParts thePart) const |
Returns the length of the displayed first axis. | |
void | SetAxisLength (Standard_Real theL1, Standard_Real theL2, Standard_Real theL3) |
Sets the lengths of the three axes. | |
Standard_Boolean | ToDrawLabels () const |
void | SetDrawLabels (Standard_Boolean theToDraw) |
Sets option to draw or not to draw text labels for axes. | |
void | SetToDrawLabels (Standard_Boolean theToDraw) |
Standard_Boolean | ToDrawArrows () const |
void | SetDrawArrows (Standard_Boolean theToDraw) |
Sets option to draw or not arrows for axes. | |
void | CopyAspectsFrom (const Handle< Prs3d_DatumAspect > &theOther) |
Performs deep copy of attributes from another aspect instance. | |
virtual void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const override |
Dumps the content of me into the stream. | |
const Handle< Prs3d_TextAspect > & | TextAspect () const |
Returns the text attributes for rendering labels. | |
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. | |
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. | |
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.
Standard_Real Prs3d_DatumAspect::AxisLength | ( | Prs3d_DatumParts | thePart | ) | const |
Returns the length of the displayed first axis.
void Prs3d_DatumAspect::CopyAspectsFrom | ( | const Handle< Prs3d_DatumAspect > & | theOther | ) |
Performs deep copy of attributes from another aspect instance.
|
inline |
Returns axes used in the datum aspect.
Standard_Boolean 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.
|
inline |
Sets the lengths of the three axes.
|
inline |
Sets option to draw or not arrows for axes.
|
inline |
Sets the axes used in the datum aspect.
|
inline |
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 |
|
inline |
Returns shading aspect for specified part.
|
inline |
Returns the text attributes for rendering labels.
|
inline |
Returns the text attributes for rendering label of specified part (Prs3d_DatumParts_XAxis/Prs3d_DatumParts_YAxis/Prs3d_DatumParts_ZAxis).
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |