Open CASCADE Technology
7.2.0
|
defines the attributes when drawing a Length Presentation. More...
#include <Prs3d_DimensionAspect.hxx>
Public Member Functions | |
Prs3d_DimensionAspect () | |
Constructs an empty framework to define the display of dimensions. More... | |
const Handle< Prs3d_LineAspect > & | LineAspect () const |
Returns the settings for the display of lines used in presentation of dimensions. More... | |
void | SetLineAspect (const Handle< Prs3d_LineAspect > &theAspect) |
Sets the display attributes of lines used in presentation of dimensions. More... | |
const Handle< Prs3d_TextAspect > & | TextAspect () const |
Returns the settings for the display of text used in presentation of dimensions. More... | |
void | SetTextAspect (const Handle< Prs3d_TextAspect > &theAspect) |
Sets the display attributes of text used in presentation of dimensions. More... | |
Standard_Boolean | IsText3d () const |
Check if text for dimension label is 3d. More... | |
void | MakeText3d (const Standard_Boolean isText3d) |
Sets type of text. More... | |
Standard_Boolean | IsTextShaded () const |
Check if 3d text for dimension label is shaded. More... | |
void | MakeTextShaded (const Standard_Boolean theIsTextShaded) |
Turns on/off text shading for 3d text. More... | |
Standard_Boolean | IsArrows3d () const |
Gets type of arrows. More... | |
void | MakeArrows3d (const Standard_Boolean theIsArrows3d) |
Sets type of arrows. More... | |
Standard_Boolean | IsUnitsDisplayed () const |
Shows if Units are to be displayed along with dimension value. More... | |
void | MakeUnitsDisplayed (const Standard_Boolean theIsDisplayed) |
Specifies whether the units string should be displayed along with value label or not. More... | |
void | SetArrowOrientation (const Prs3d_DimensionArrowOrientation theArrowOrient) |
Sets orientation of arrows (external or internal). By default orientation is chosen automatically according to situation and text label size. More... | |
Prs3d_DimensionArrowOrientation | ArrowOrientation () const |
Gets orientation of arrows (external or internal). More... | |
void | SetTextVerticalPosition (const Prs3d_DimensionTextVerticalPosition thePosition) |
Sets vertical text alignment for text label. More... | |
Prs3d_DimensionTextVerticalPosition | TextVerticalPosition () const |
Gets vertical text alignment for text label. More... | |
void | SetTextHorizontalPosition (const Prs3d_DimensionTextHorizontalPosition thePosition) |
Sets horizontal text alignment for text label. More... | |
Prs3d_DimensionTextHorizontalPosition | TextHorizontalPosition () const |
Gets horizontal text alignment for text label. More... | |
const Handle< Prs3d_ArrowAspect > & | ArrowAspect () const |
Returns the settings for displaying arrows. More... | |
void | SetArrowAspect (const Handle< Prs3d_ArrowAspect > &theAspect) |
Sets the display attributes of arrows used in presentation of dimensions. More... | |
void | SetCommonColor (const Quantity_Color &theColor) |
Sets the same color for all parts of dimension: lines, arrows and text. More... | |
void | SetExtensionSize (const Standard_Real theSize) |
Sets extension size. More... | |
Standard_Real | ExtensionSize () const |
Returns extension size. More... | |
void | SetArrowTailSize (const Standard_Real theSize) |
Set size for arrow tail (extension without text). More... | |
Standard_Real | ArrowTailSize () const |
Returns arrow tail size. More... | |
void | SetValueStringFormat (const TCollection_AsciiString &theFormat) |
Sets "sprintf"-syntax format for formatting dimension value labels. More... | |
const TCollection_AsciiString & | ValueStringFormat () const |
Returns format. More... | |
Public Member Functions inherited from Standard_Transient | |
Standard_Transient () | |
Empty constructor. More... | |
Standard_Transient (const Standard_Transient &) | |
Copy constructor – does nothing. More... | |
Standard_Transient & | operator= (const Standard_Transient &) |
Assignment operator, needed to avoid copying reference counter. More... | |
virtual | ~Standard_Transient () |
Destructor must be virtual. More... | |
virtual void | Delete () const |
Memory deallocator for transient classes. More... | |
virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
Returns a type descriptor about this object. More... | |
Standard_Boolean | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
Returns a true value if this is an instance of Type. More... | |
Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
Returns a true value if this is an instance of TypeName. More... | |
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. More... | |
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. More... | |
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. More... | |
Standard_Integer | GetRefCount () const |
Get the reference counter of this object. More... | |
void | IncrementRefCounter () const |
Increments the reference counter of this object. More... | |
Standard_Integer | DecrementRefCounter () const |
Decrements the reference counter of this object; returns the decremented value. More... | |
Additional Inherited Members | |
Public Types inherited from Standard_Transient | |
typedef void | base_type |
Returns a type descriptor about this object. More... | |
Static Public Member Functions inherited from Standard_Transient | |
static const char * | get_type_name () |
Returns a type descriptor about this object. More... | |
static const opencascade::handle< Standard_Type > & | get_type_descriptor () |
Returns type descriptor of Standard_Transient class. More... | |
defines the attributes when drawing a Length Presentation.
Prs3d_DimensionAspect::Prs3d_DimensionAspect | ( | ) |
Constructs an empty framework to define the display of dimensions.
|
inline |
Returns the settings for displaying arrows.
|
inline |
Gets orientation of arrows (external or internal).
|
inline |
Returns arrow tail size.
|
inline |
Returns extension size.
|
inline |
Gets type of arrows.
|
inline |
Check if text for dimension label is 3d.
|
inline |
Check if 3d text for dimension label is shaded.
|
inline |
Shows if Units are to be displayed along with dimension value.
|
inline |
Returns the settings for the display of lines used in presentation of dimensions.
|
inline |
Sets type of arrows.
|
inline |
Sets type of text.
|
inline |
Turns on/off text shading for 3d text.
|
inline |
Specifies whether the units string should be displayed along with value label or not.
|
inline |
Sets the display attributes of arrows used in presentation of dimensions.
|
inline |
Sets orientation of arrows (external or internal). By default orientation is chosen automatically according to situation and text label size.
|
inline |
Set size for arrow tail (extension without text).
void Prs3d_DimensionAspect::SetCommonColor | ( | const Quantity_Color & | theColor | ) |
Sets the same color for all parts of dimension: lines, arrows and text.
|
inline |
Sets extension size.
|
inline |
Sets the display attributes of lines used in presentation of dimensions.
|
inline |
Sets the display attributes of text used in presentation of dimensions.
|
inline |
Sets horizontal text alignment for text label.
|
inline |
Sets vertical text alignment for text label.
|
inline |
Sets "sprintf"-syntax format for formatting dimension value labels.
|
inline |
Returns the settings for the display of text used in presentation of dimensions.
|
inline |
Gets horizontal text alignment for text label.
|
inline |
Gets vertical text alignment for text label.
|
inline |
Returns format.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |