CFx SDK Documentation 2024 SP0
|
#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.
<group OdGs_Classes>
Associates the specified Viewport object with this Device object.
pView | [in] Pointer to the OdGsView object. |
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Creates a new OdGsModel object, and associates it with this Device object.
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
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 OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Erases all views associated with this Device object.
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Erases the specified View object.
viewIndex | [in] View index. |
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Erases the specified View object.
pView | [in] Pointer to the OdGsView object. |
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Returns the Background Color of the GUI window of this Device object.
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Returns the logical pallete used by this Device object.
numColors | [out] Number of colors in palette. |
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Returns device surface output rectangle.
outputRect | [out] Obtains size of the output rectangle in device coordinates (pixels). |
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
virtual |
Returns device surface output rectangle.
outputRect | [out] Obtains size of the output rectangle in device coordinates (pixels). |
Reimplemented in 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 OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
virtual |
Returns OdGsUpdateManager associated with current device
createIfNotExist | [in] Creates instance of OdGsUpdateManager if no one associated with device |
Reimplemented in OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >, and OdGsBaseVectorizeDevice.
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 OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Marks for refresh entire region of the GUI window of this Device object.
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Marks for refresh the specified region of the GUI window of this Device object.
screenRect | [in] Rectangular area. |
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
virtual |
Checks compatibility between specified OdGsModel and this Device object.
pModel | [in] Model object pointer to check compatibility. |
Reimplemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Checks whether the GUI window for this Device object is showing the correct image.
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
virtual |
Restores device state from filer object.
pFiler | [in] Filer object. |
Reimplemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Returns the number of views associated with this Device object.
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
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 OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Notification function typically called whenever the GUI window for this Device object loses focus.
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
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 OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
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 OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Returns a SmartPointer to the dictionary containing the properties for this Device object.
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
virtual |
Stores current device state into filer object.
pFiler | [out] Filer object. |
Reimplemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Sets the Background Color of the GUI window of this Device object.
backgroundColor | [in] Background color. |
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
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 OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
virtual |
Associates OdGsUpdateManager with device
pManager | [in] Pointer to the OdGsUpdateManager |
Reimplemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Sets the User Context object associated with this Device object.
pUserGiContext | [in] Pointer to the User Context. |
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
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 OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Returns the User Context object associated with this Device object.
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.
|
pure virtual |
Returns the specified OdGsView object associated with this Device object.
viewIndex | [in] View index. |
Implemented in OdGsBaseVectorizeDevice, and OdGsDeviceWrapper< OdGsDevice, OdGsDefaultRedirectionBase< OdGsDevice, OdGsDevice > >.