CFx SDK Documentation
2023 SP0
|
#include <GiViewport.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdGiViewport) | |
virtual OdGeMatrix3d | getModelToEyeTransform () const =0 |
virtual OdGeMatrix3d | getEyeToModelTransform () const =0 |
virtual OdGeMatrix3d | getWorldToEyeTransform () const =0 |
virtual OdGeMatrix3d | getEyeToWorldTransform () const =0 |
virtual bool | isPerspective () const =0 |
virtual bool | doPerspective (OdGePoint3d &point) const =0 |
virtual bool | doInversePerspective (OdGePoint3d &point) const =0 |
virtual void | getNumPixelsInUnitSquare (const OdGePoint3d &point, OdGePoint2d &pixelDensity, bool bUsePerspective=true) const =0 |
virtual OdGePoint3d | getCameraLocation () const =0 |
virtual OdGePoint3d | getCameraTarget () const =0 |
virtual OdGeVector3d | getCameraUpVector () const =0 |
virtual OdGeVector3d | viewDir () const =0 |
virtual OdUInt32 | viewportId () const =0 |
virtual OdInt16 | acadWindowId () const =0 |
virtual void | getViewportDcCorners (OdGePoint2d &lowerLeft, OdGePoint2d &upperRight) const =0 |
virtual bool | getFrontAndBackClipValues (bool &clipFront, bool &clipBack, double &front, double &back) const =0 |
virtual double | linetypeScaleMultiplier () const =0 |
virtual double | linetypeGenerationCriteria () const =0 |
virtual bool | layerVisible (OdDbStub *layerId) const =0 |
virtual const OdGiContextualColors * | contextualColors () const |
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 represents the view characteristics of current Viewport within the Teigha vectorization framework.
<group OdGi_Classes>
Definition at line 50 of file GiViewport.h.
|
pure virtual |
Returns the ID for this Viewport object..
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
|
inlinevirtual |
Returns pointer to context-dependent colors storage.
Reimplemented in OdGiBaseVectorizerImpl.
Definition at line 251 of file GiViewport.h.
|
pure virtual |
Applies the inverse of the current perspective transformation to the specified point.
point | [in/out] Any 3D point. |
Returns true if and only if the point was transformed; i.e., a perspective transform is active, and the point was neither too close or behind the camera.
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
|
pure virtual |
Applies the current perspective transformation to the specified point.
point | [in/out] Any 3D point. |
Returns true if and only if the point was transformed; i.e., a perspective transform is active, and the point was neither too close or behind the camera.
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
|
pure virtual |
Returns the WCS camera (eye) location for this Viewport object.
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
|
pure virtual |
Returns the WCS camera target for this Viewport object.
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
|
pure virtual |
Returns the WCS camera "up" vector for this Viewport object.
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
|
pure virtual |
Returns the transformation matrix from EyeSpace to ModelSpace for this Viewport object.
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
|
pure virtual |
Returns the transformation matrix from EyeSpace to WCS for this Viewport object.
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
|
pure virtual |
Returns the front and back clipping parameters for this Viewport object.
clipFront | [out] Receives true if and only if front clipping is enabled. |
clipBack | [out] Receives true if and only if back clipping is enabled. |
front | [out] Receives the front clipping distance. |
back | [out] Receives the back clipping distance. |
front and back are the eye coordinate Z values.
Clipping planes are perpendicular to the view direction.
If the front clipping plane is enabled, geometry in front of it is not displayed.
If the back clipping plane is enabled, geometry in back of it is not displayed.
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
|
pure virtual |
Returns the transformation matrix from ModelSpace to EyeSpace for this Viewport object.
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
|
pure virtual |
Returns the display pixel density at the specified point for this Viewport object.
point | [in] WCS center of the unit square. |
pixelDensity | [out] Receives the pixel density. |
bUsePerspective | [in] Enable perspective inclusion into pixel density calculation. |
This function can be used to determine if the geometry generated for an object will be smaller than the size of a pixel.
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
|
pure virtual |
Returns lower-left and upper-right corners of this Viewport object in normalized device Coordinates.
lowerLeft | [out] Receives the lower-left corner. |
upperRight | [out] Receives the upper-right. |
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
|
pure virtual |
Returns the transformation matrix from WCS to EyeSpace for this Viewport object.
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
|
pure virtual |
Returns true if and only if perspective mode is on for this Viewport.
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
|
pure virtual |
Returns true if and only if the specified layer is not frozen either globally or in this Viewport object.
layerId | [in] Object ID of OdLayerTableRecord. |
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
|
pure virtual |
Returns the WCS value below which linetype generation is not used.
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
|
pure virtual |
Returns a multiplier that is used to scale all linetypes in this Viewport object.
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
OdGiViewport::ODRX_DECLARE_MEMBERS | ( | OdGiViewport | ) |
|
pure virtual |
Returns the vector from the camera target to the camera location.
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.
|
pure virtual |
Returns the OdGi Viewport ID for this Viewport object.
Implemented in OdGiLayerTraitsTakerView, and OdGiBaseVectorizerImpl.