Open CASCADE Technology  7.3.1.dev
Public Member Functions | Protected Attributes
Graphic3d_PresentationAttributes Class Reference

Class defines presentation properties. More...

#include <Graphic3d_PresentationAttributes.hxx>

Inheritance diagram for Graphic3d_PresentationAttributes:
Inheritance graph
[legend]

Public Member Functions

 Graphic3d_PresentationAttributes ()
 Empty constructor. More...
 
virtual ~Graphic3d_PresentationAttributes ()
 Destructor. More...
 
Aspect_TypeOfHighlightMethod Method () const
 Returns highlight method, Aspect_TOHM_COLOR by default. More...
 
virtual void SetMethod (const Aspect_TypeOfHighlightMethod theMethod)
 Changes highlight method to the given one. More...
 
const Quantity_ColorRGBAColorRGBA () const
 Returns basic presentation color (including alpha channel). More...
 
const Quantity_ColorColor () const
 Returns basic presentation color, Quantity_NOC_WHITE by default. More...
 
virtual void SetColor (const Quantity_Color &theColor)
 Sets basic presentation color (RGB components, does not modifies transparency). More...
 
Standard_ShortReal Transparency () const
 Returns basic presentation transparency (0 - opaque, 1 - fully transparent), 0 by default (opaque). More...
 
virtual void SetTransparency (const Standard_ShortReal theTranspCoef)
 Sets basic presentation transparency (0 - opaque, 1 - fully transparent). More...
 
Graphic3d_ZLayerId ZLayer () const
 Returns presentation Zlayer, Graphic3d_ZLayerId_Default by default. Graphic3d_ZLayerId_UNKNOWN means undefined (a layer of main presentation to be used). More...
 
virtual void SetZLayer (const Graphic3d_ZLayerId theLayer)
 Sets presentation Zlayer. More...
 
Standard_Integer DisplayMode () const
 Returns display mode, 0 by default. -1 means undefined (main display mode of presentation to be used). More...
 
virtual void SetDisplayMode (const Standard_Integer theMode)
 Sets display mode. More...
 
const Handle< Graphic3d_AspectFillArea3d > & BasicFillAreaAspect () const
 Return basic presentation fill area aspect, NULL by default. When set, might be used instead of Color() property. More...
 
virtual void SetBasicFillAreaAspect (const Handle< Graphic3d_AspectFillArea3d > &theAspect)
 Sets basic presentation fill area aspect. More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (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_TransientThis () 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...
 

Protected Attributes

Handle< Graphic3d_AspectFillArea3dmyBasicFillAreaAspect
 presentation fill area aspect More...
 
Quantity_ColorRGBA myBasicColor
 presentation color More...
 
Aspect_TypeOfHighlightMethod myHiMethod
 box or color highlighting More...
 
Graphic3d_ZLayerId myZLayer
 Z-layer. More...
 
Standard_Integer myDispMode
 display mode 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...
 

Detailed Description

Class defines presentation properties.

Constructor & Destructor Documentation

◆ Graphic3d_PresentationAttributes()

Graphic3d_PresentationAttributes::Graphic3d_PresentationAttributes ( )
inline

Empty constructor.

◆ ~Graphic3d_PresentationAttributes()

virtual Graphic3d_PresentationAttributes::~Graphic3d_PresentationAttributes ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ BasicFillAreaAspect()

const Handle< Graphic3d_AspectFillArea3d >& Graphic3d_PresentationAttributes::BasicFillAreaAspect ( ) const
inline

Return basic presentation fill area aspect, NULL by default. When set, might be used instead of Color() property.

◆ Color()

const Quantity_Color& Graphic3d_PresentationAttributes::Color ( ) const
inline

Returns basic presentation color, Quantity_NOC_WHITE by default.

◆ ColorRGBA()

const Quantity_ColorRGBA& Graphic3d_PresentationAttributes::ColorRGBA ( ) const
inline

Returns basic presentation color (including alpha channel).

◆ DisplayMode()

Standard_Integer Graphic3d_PresentationAttributes::DisplayMode ( ) const
inline

Returns display mode, 0 by default. -1 means undefined (main display mode of presentation to be used).

◆ Method()

Aspect_TypeOfHighlightMethod Graphic3d_PresentationAttributes::Method ( ) const
inline

Returns highlight method, Aspect_TOHM_COLOR by default.

◆ SetBasicFillAreaAspect()

virtual void Graphic3d_PresentationAttributes::SetBasicFillAreaAspect ( const Handle< Graphic3d_AspectFillArea3d > &  theAspect)
inlinevirtual

Sets basic presentation fill area aspect.

◆ SetColor()

virtual void Graphic3d_PresentationAttributes::SetColor ( const Quantity_Color theColor)
inlinevirtual

Sets basic presentation color (RGB components, does not modifies transparency).

◆ SetDisplayMode()

virtual void Graphic3d_PresentationAttributes::SetDisplayMode ( const Standard_Integer  theMode)
inlinevirtual

Sets display mode.

◆ SetMethod()

virtual void Graphic3d_PresentationAttributes::SetMethod ( const Aspect_TypeOfHighlightMethod  theMethod)
inlinevirtual

Changes highlight method to the given one.

◆ SetTransparency()

virtual void Graphic3d_PresentationAttributes::SetTransparency ( const Standard_ShortReal  theTranspCoef)
inlinevirtual

Sets basic presentation transparency (0 - opaque, 1 - fully transparent).

◆ SetZLayer()

virtual void Graphic3d_PresentationAttributes::SetZLayer ( const Graphic3d_ZLayerId  theLayer)
inlinevirtual

Sets presentation Zlayer.

◆ Transparency()

Standard_ShortReal Graphic3d_PresentationAttributes::Transparency ( ) const
inline

Returns basic presentation transparency (0 - opaque, 1 - fully transparent), 0 by default (opaque).

◆ ZLayer()

Graphic3d_ZLayerId Graphic3d_PresentationAttributes::ZLayer ( ) const
inline

Returns presentation Zlayer, Graphic3d_ZLayerId_Default by default. Graphic3d_ZLayerId_UNKNOWN means undefined (a layer of main presentation to be used).

Field Documentation

◆ myBasicColor

Quantity_ColorRGBA Graphic3d_PresentationAttributes::myBasicColor
protected

presentation color

◆ myBasicFillAreaAspect

Handle< Graphic3d_AspectFillArea3d > Graphic3d_PresentationAttributes::myBasicFillAreaAspect
protected

presentation fill area aspect

◆ myDispMode

Standard_Integer Graphic3d_PresentationAttributes::myDispMode
protected

display mode

◆ myHiMethod

Aspect_TypeOfHighlightMethod Graphic3d_PresentationAttributes::myHiMethod
protected

box or color highlighting

◆ myZLayer

Graphic3d_ZLayerId Graphic3d_PresentationAttributes::myZLayer
protected

Z-layer.


The documentation for this class was generated from the following file: