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

#include <GsViewportProperties.h>

Inheritance diagram for OdGsViewportProperties:
OdGsProperties OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdGsViewportProperties)
 
 OdGsViewportProperties ()
 
 ~OdGsViewportProperties ()
 
OdGiViewportTraitsDataviewportTraitsData () 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 GsViewportProperties.h.

Constructor & Destructor Documentation

◆ OdGsViewportProperties()

OdGsViewportProperties::OdGsViewportProperties ( )

Default constructor for the OdGsViewportProperties class. Sets viewport traits to NULL.

◆ ~OdGsViewportProperties()

OdGsViewportProperties::~OdGsViewportProperties ( )

Destructor for the OdGsViewportProperties class. Clears viewport traits.

Member Function Documentation

◆ clearTraits()

void OdGsViewportProperties::clearTraits ( )

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

◆ display()

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

Implements OdGsProperties.

◆ isTraitsModified()

bool OdGsViewportProperties::isTraitsModified ( )

Checks whether viewport traits are modified.

Returns
true if viewport traits are modified, false otherwise.

◆ ODRX_DECLARE_MEMBERS()

OdGsViewportProperties::ODRX_DECLARE_MEMBERS ( OdGsViewportProperties  )

◆ propertiesForType()

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

Retrieves smart pointer to properties specified by the passed type.

Parameters
type[in] Property type.
Remarks
'type' can be one of the the following: kViewport - smart pointer to this object is returned kBackground - method returns OdGsBackgroundPropertiesPtr smart pointer to associated background properties. kVisualStyle - method returns OdGsVisualStylePropertiesPtr smart pointer to associated visual style properties. kRenderEnvironment - method returns OdGsRenderEnvironmentPropertiesPtr smart pointer to associated render environment properties. kRenderSettings - method returns OdGsRenderSettingsPropertiesPtr smart pointer to associated sender settings properties. In all other case method returns generic OdGsPropertiesPtr smart pointer.

Reimplemented from OdGsProperties.

◆ propertiesType()

virtual PropertiesType OdGsViewportProperties::propertiesType ( ) const
inlinevirtual

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

Implements OdGsProperties.

Definition at line 90 of file GsViewportProperties.h.

◆ update()

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

Implements OdGsProperties.

◆ viewportTraitsData()

OdGiViewportTraitsData * OdGsViewportProperties::viewportTraitsData ( ) const
inline

Retrieves pointer to viewport traits data object.

Definition at line 70 of file GsViewportProperties.h.


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