CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
OdGsVisualStyleProperties Class Reference

#include <GsVisualStyleProperties.h>

Inheritance diagram for OdGsVisualStyleProperties:
OdGsProperties OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdGsVisualStyleProperties)
 
 OdGsVisualStyleProperties ()
 
 ~OdGsVisualStyleProperties ()
 
OdGiVisualStyleTraitsDatavisualStyleTraitsData () const
 
bool isTraitsModified ()
 
void clearTraits ()
 
virtual PropertiesType propertiesType () const
 
virtual OdSmartPtr< OdGsPropertiespropertiesForType (PropertiesType type) const
 
virtual void update (const OdGiDrawable *pUnderlyingDrawable, OdGsViewImpl *view, OdUInt32 incFlags=kAll)
 
virtual void display (OdGsBaseVectorizer &view, OdGsPropertiesDirectRenderOutput *pdro=NULL, OdUInt32 incFlags=kAll)
 
- Public Member Functions inherited from OdGsProperties
 ODRX_DECLARE_MEMBERS (OdGsProperties)
 
 OdGsProperties ()
 
void setOpenDrawableFn (OdGiDrawablePtr(*fn)(OdDbStub *))
 
void setUnderlyingDrawable (const OdGiDrawable *pUnderlyingDrawable, OdGiContext *ctx)
 
OdGiDrawablePtr underlyingDrawable () const
 
bool isUnderlyingDrawableChanged (const OdGiDrawable *pUnderlyingDrawable) const
 
bool hasUnderlyingDrawable () const
 
bool isUnderlyingDrawablePersistent () const
 
OdDbStub * underlyingDrawableId () const
 
OdGiDrawable::DrawableType underlyingDrawableType () const
 
virtual PropertiesType propertiesType () const =0
 
virtual OdSmartPtr< OdGsPropertiespropertiesForType (PropertiesType) const
 
virtual void update (const OdGiDrawable *pUnderlyingDrawable, OdGsViewImpl *view, OdUInt32 incFlags=kAll)=0
 
virtual void display (OdGsBaseVectorizer &view, OdGsPropertiesDirectRenderOutput *pdro=NULL, OdUInt32 incFlags=kAll)=0
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Additional Inherited Members

- Public Types inherited from OdGsProperties
enum  PropertiesType {
  kViewport = 1 , kBackground = (1 << 1) , kVisualStyle = (1 << 2) , kRenderEnvironment = (1 << 3) ,
  kRenderSettings = (1 << 4) , kDeviceSimple = 0 , kDeviceBackground = 3 , kDeviceNormal = 7 ,
  kDeviceRender = 31 , kAll = 31
}
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
- Protected Attributes inherited from OdGsProperties
voidm_pUnderlyingDrawable
 
const OdGiDrawablem_pInconsistentDrawable
 
OdGiContextm_context
 
OdGiDrawablePtr(* m_pOpenDrawableFn )(OdDbStub *id)
 
bool m_bDrawablePersistent
 
OdGiDrawable::DrawableType m_dType
 

Detailed Description

<group OdGs_Classes>

Definition at line 46 of file GsVisualStyleProperties.h.

Constructor & Destructor Documentation

◆ OdGsVisualStyleProperties()

OdGsVisualStyleProperties::OdGsVisualStyleProperties ( )

Default constructor for the OdGsVisualStyleProperties class. Sets visual style traits (pointer to OdGiVisualStyleTraitsData object) to NULL.

◆ ~OdGsVisualStyleProperties()

OdGsVisualStyleProperties::~OdGsVisualStyleProperties ( )

Destructor for the OdGsVisualStyleProperties class. Clears visual style traits.

Member Function Documentation

◆ clearTraits()

void OdGsVisualStyleProperties::clearTraits ( )

Clears viewport traits (background, visual style, render environment and render settings) if they are not NULL.

◆ display()

virtual void OdGsVisualStyleProperties::display ( OdGsBaseVectorizer view,
OdGsPropertiesDirectRenderOutput pdro = NULL,
OdUInt32  incFlags = kAll 
)
virtual

Implements OdGsProperties.

◆ isTraitsModified()

bool OdGsVisualStyleProperties::isTraitsModified ( )

Checks whether visual style traits are modified.

Returns
true if visual style traits are modified, false otherwise.

◆ ODRX_DECLARE_MEMBERS()

OdGsVisualStyleProperties::ODRX_DECLARE_MEMBERS ( OdGsVisualStyleProperties  )

◆ propertiesForType()

virtual OdSmartPtr< OdGsProperties > OdGsVisualStyleProperties::propertiesForType ( PropertiesType  type) const
virtual

Retrieves smart pointer to properties specified by the passed type.

Parameters
type[in] Property type.
Remarks
If you pass the 'kVisualStyle' style the method returns a smart pointer to this object. In all other case method returns generic OdGsPropertiesPtr smart pointer.

Reimplemented from OdGsProperties.

◆ propertiesType()

virtual PropertiesType OdGsVisualStyleProperties::propertiesType ( ) const
inlinevirtual

Retrieves type of properties for this object with is 'kVisualStyle'.

Implements OdGsProperties.

Definition at line 86 of file GsVisualStyleProperties.h.

◆ update()

virtual void OdGsVisualStyleProperties::update ( const OdGiDrawable pUnderlyingDrawable,
OdGsViewImpl view,
OdUInt32  incFlags = kAll 
)
virtual

Implements OdGsProperties.

◆ visualStyleTraitsData()

OdGiVisualStyleTraitsData * OdGsVisualStyleProperties::visualStyleTraitsData ( ) const
inline

Retrieves pointer to visual style traits data object.

Definition at line 66 of file GsVisualStyleProperties.h.


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