CFx SDK Documentation
2020SP3
|
#include <Gs.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdGsDevice) | |
virtual OdRxDictionaryPtr | properties ()=0 |
virtual OdGiContext * | userGiContext () const =0 |
virtual void | setUserGiContext (OdGiContext *pUserGiContext)=0 |
virtual void | invalidate ()=0 |
virtual void | invalidate (const OdGsDCRect &screenRect)=0 |
virtual bool | isValid () const =0 |
virtual void | update (OdGsDCRect *pUpdatedRect=0)=0 |
virtual void | onSize (const OdGsDCRect &outputRect)=0 |
virtual void | onSize (const OdGsDCRectDouble &outputRect) |
virtual void | getSize (OdGsDCRect &outputRect) const =0 |
virtual void | getSize (OdGsDCRectDouble &outputRect) const |
virtual void | onRealizeForegroundPalette ()=0 |
virtual void | onRealizeBackgroundPalette ()=0 |
virtual void | onDisplayChange (int bitsPerPixel, int xPixels, int yPixels)=0 |
virtual OdGsViewPtr | createView (const OdGsClientViewInfo *pViewInfo=0, bool enableLayerVisibilityPerView=false)=0 |
virtual void | addView (OdGsView *pView)=0 |
virtual OdGsModelPtr | createModel ()=0 |
virtual bool | isModelCompatible (OdGsModel *pModel) const |
virtual bool | saveDeviceState (OdGsFiler *pFiler) const |
virtual bool | loadDeviceState (OdGsFiler *pFiler) |
virtual void | insertView (int viewIndex, OdGsView *pView)=0 |
virtual bool | eraseView (OdGsView *pView)=0 |
virtual bool | eraseView (int viewIndex)=0 |
virtual void | eraseAllViews ()=0 |
virtual int | numViews () const =0 |
virtual OdGsView * | viewAt (int viewIndex)=0 |
virtual bool | setBackgroundColor (ODCOLORREF backgroundColor)=0 |
virtual ODCOLORREF | getBackgroundColor ()=0 |
virtual void | setLogicalPalette (const ODCOLORREF *logicalPalette, int numColors)=0 |
virtual const ODCOLORREF * | getLogicalPalette (int &numColors) const =0 |
virtual void | getSnapShot (OdGiRasterImagePtr &pImage, const OdGsDCRect ®ion)=0 |
virtual OdGsUpdateManagerPtr | getUpdateManager (bool createIfNotExist=false) |
virtual void | setUpdateManager (OdGsUpdateManagerPtr pManager) |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () 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 | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class is the abstract base class for classes that encapsulate GUI display windows.
In addition, they responds to operating system notifications, such as window resize, forwarded by the graphics system client.
Corresponding C++ library: TD_Gs
<group OdGs_Classes>
Associates the specified Viewport object with this Device object.
pView | [in] Pointer to the OdGsView object. |
Implemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Creates a new OdGsModel object, and associates it with this Device object.
Implemented in OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Creates a new OdGsView object, and associates it with this Device object.
pViewInfo | [in] Pointer to the Client View Information for this Device object. |
enableLayerVisibilityPerView | [in] Layer visibility per viewport is supported, if and only if true. |
pViewInfo contains information returned by OdGiViewport::acadWindowId() and OdGiViewportDraw::viewportObjectId()
Implemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Erases all views associated with this Device object.
Implemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Erases the specified View object.
viewIndex | [in] View index. |
Implemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Erases the specified View object.
pView | [in] Pointer to the OdGsView object. |
Implemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Returns the Background Color of the GUI window of this Device object.
Implemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Returns the logical pallete used by this Device object.
numColors | [out] Number of colors in palette. |
Implemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Returns device surface output rectangle.
outputRect | [out] Obtains size of the output rectangle in device coordinates (pixels). |
Implemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
virtual |
Returns device surface output rectangle.
outputRect | [out] Obtains size of the output rectangle in device coordinates (pixels). |
Reimplemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Returns image of current device buffer.
pImage | [out] Pointer for image to return. |
region | [in] Rectangle specifies region to return. |
Implemented in OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
virtual |
Returns OdGsUpdateManager associated with current device
createIfNotExist | [in] Creates instance of OdGsUpdateManager if no one associated with device |
Reimplemented in OdGsBaseVectorizeDevice, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
Inserts the specified Viewport object to the specified position in this Device object.
viewIndex | [in] View index. |
pView | [in] Pointer to the OdGsView object. |
Implemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Marks for refresh the specified region of the GUI window of this Device object.
screenRect | [in] Rectangular area. |
Implemented in OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
|
virtual |
Checks compatibility between specified OdGsModel and this Device object.
pModel | [in] Model object pointer to check compatibility. |
By default this always returns false. It is must be implemented in inherited classes to enable Model object reuse support. If Device object use overriden Model object it should return false if input Model object doesn't overriden.
Typical way to check compatibility is using of RTTI.
If your metafiles cache doesn't support per-device sharing override and return false.
Reimplemented in OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Returns true if and only if the GUI window for this Device object is showing the correct image.
Implemented in OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, and OdGsBaseVectorizeDevice.
|
virtual |
Restores device state from filer object.
pFiler | [in] Filer object. |
Reimplemented in OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Returns the number of views associated with this Device object.
Implemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, and OdGsBaseVectorizeDevice.
OdGsDevice::ODRX_DECLARE_MEMBERS | ( | OdGsDevice | ) |
|
pure virtual |
Notification function called whenever the OS screen resolution and/or color depth have changed.
bitsPerPixel | [in] Color depth. |
xPixels | [in] X pixels. |
yPixels | [in] Y pixels. |
Implemented in OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Notification function typically called whenever the GUI window for this Device object loses focus.
Implemented in OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Implemented in OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Notification function called whenever the size of the GUI window for this Device object has changed.
outputRect | [in] New size of the output rectangle in device coordinates (pixels). |
Implemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
virtual |
Notification function called whenever the size of the GUI window for this Device object has changed.
outputRect | [in] New size of the output rectangle in device coordinates (pixels). |
Reimplemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Returns a SmartPointer to the dictionary containing the properties for this Device object.
Implemented in OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
virtual |
Stores current device state into filer object.
pFiler | [in] Filer object. |
Reimplemented in OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Sets the Background Color of the GUI window of this Device object.
backgroundColor | [in] Background color. |
Implemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Sets the logical pallete to be used by this Device object.
logicalPalette | [in] Logical palette. |
numColors | [in] Number of colors in palette. |
Implemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
virtual |
Associates OdGsUpdateManager with device
pManager | [in] Pointer to the OdGsUpdateManager |
Reimplemented in OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Sets the User Context object associated with this Device object.
pUserGiContext | [in] Pointer to the User Context. |
Implemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Updates the GUI window for this Device object.
pUpdatedRect | [out] Pointer to the a rectangle to receive the region updated by this function. |
Implemented in OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Returns the User Context object associated with this Device object.
Implemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, and OdGsBaseVectorizeDevice.
|
pure virtual |
Returns the specified OdGsView object associated with this Device object.
viewIndex | [in] View index. |
Implemented in OdGsDeviceWrapperMinimalImpl< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< GsDeviceInterface, RedirectionBase >, OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.