CFx SDK Documentation 2024 SP0
|
#include <GsViewImpl.h>
Classes | |
struct | GsViewOverlayData |
class | GsViewOverlayDataContainer |
Public Types | |
enum | ProjectionMatrixFlags { kProjectionIncludeDept = (1 << 0) , kProjectionIncludeClip = (1 << 1) , kProjectionIncludePerspective = (1 << 2) , kProjectionIncludeRotation = (1 << 3) , kProjectionIncludeAll = 0x0F , kProjectionIncludeAllNoDept = kProjectionIncludeAll & ~kProjectionIncludeDept } |
Public Types inherited from OdGsView | |
enum | RenderMode { kBoundingBox = -1 , k2DOptimized = 0 , kWireframe = 1 , kHiddenLine = 2 , kFlatShaded = 3 , kGouraudShaded = 4 , kFlatShadedWithWireframe = 5 , kGouraudShadedWithWireframe = 6 , kNone } |
enum | Projection { kParallel = 0 , kPerspective = 1 } |
enum | SelectionMode { kWindow = 0 , kCrossing = 1 , kFence = 2 , kWPoly = 3 , kCPoly = 4 , kPoint = 16 } |
enum | DefaultLightingType { kOneLight = 0 , kTwoLights , kBackLight } |
enum | ViewUpdateFlags { kCameraChanged = 1 } |
enum | ClearColor { kTransparent , kDeviceBackground , kPaletteBackground } |
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdGsViewImpl) | |
OdGsViewImpl () | |
~OdGsViewImpl () | |
virtual void | init (OdGsBaseVectorizeDevice *pDevice, const OdGsClientViewInfo *pViewInfo=0, bool enableLayerVisibilityPerView=false) |
virtual OdGsDevice * | device () const |
virtual void | clientViewInfo (OdGsClientViewInfo &viewInfo) const |
virtual RenderMode | mode () const |
bool | setModeOverride (RenderMode mode) |
virtual void | setMode (RenderMode mode) |
virtual void | freezeLayer (OdDbStub *layerID) |
virtual void | thawLayer (OdDbStub *layerID) |
virtual void | clearFrozenLayers () |
virtual void | setViewportBorderProperties (ODCOLORREF color, int width) |
virtual void | getViewportBorderProperties (ODCOLORREF &color, int &width) const |
virtual void | setViewportBorderVisibility (bool visible) |
virtual bool | isViewportBorderVisible () const |
virtual void | setEnableFrontClip (bool enable) |
virtual bool | isFrontClipped () const |
virtual void | setFrontClip (double distance) |
virtual double | frontClip () const |
virtual void | setEnableBackClip (bool enable) |
virtual bool | isBackClipped () const |
virtual void | setBackClip (double distance) |
virtual double | backClip () const |
virtual OdGePoint3d | position () const |
virtual OdGePoint3d | target () const |
virtual OdGeVector3d | upVector () const |
virtual double | fieldWidth () const |
virtual double | fieldHeight () const |
double | windowAspect () const |
virtual double | lensLength () const |
virtual void | setLensLength (double lensLength) |
virtual bool | isPerspective () const |
virtual void | beginInteractivity (double frameRateInHz) |
virtual bool | isInInteractivity () const |
virtual double | interactivityFrameRate () const |
virtual void | endInteractivity () |
virtual void | flush () |
virtual void | hide () |
virtual void | show () |
virtual bool | isVisible () |
virtual OdGsViewPtr | cloneView (bool cloneViewParameters=true, bool cloneGeometry=false) |
virtual bool | exceededBounds () |
virtual void | enableStereo (bool enabled) |
virtual bool | isStereoEnabled () const |
virtual void | setStereoParameters (double magnitude, double parallax) |
virtual void | getStereoParameters (double &magnitude, double ¶llax) const |
virtual void | initLights (OdRxIterator *pLightsIterator) |
virtual void | getSnapShot (OdGiRasterImagePtr &pImage, const OdGsDCRect ®ion) |
virtual void | setViewport (const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight) |
virtual void | setViewport (const OdGsDCRect &screenRect) |
virtual void | setViewport (const OdGsDCRectDouble &screenRec) |
virtual void | getViewport (OdGePoint2d &lowerLeft, OdGePoint2d &upperRight) const |
virtual void | getViewport (OdGsDCRect &screenRect) const |
virtual void | getViewport (OdGsDCRectDouble &screenRec) const |
virtual OdGeMatrix3d | screenMatrix () const |
virtual OdGeMatrix3d | worldToDeviceMatrix () const |
virtual OdGeMatrix3d | objectToDeviceMatrix () const |
virtual OdGeMatrix3d | viewingMatrix () const |
virtual OdGeMatrix3d | projectionMatrix () const |
virtual void | viewParameters (OdGsView *pView) const |
virtual double | lineweightToDcScale () const |
virtual void | setLineweightToDcScale (double scale) |
virtual void | setLineweightEnum (int numLineweights, const OdUInt8 *lineweights) |
virtual void | setLinetypeScaleMultiplier (double linetypeScaleMultiplier) |
virtual void | setAlternateLinetypeScaleMultiplier (double linetypeAlternateScaleMultiplier) |
virtual double | linetypeScaleMultiplier () const |
virtual void | dolly (const OdGeVector3d &dollyVector) |
virtual void | dolly (double xDolly, double yDolly, double zDolly) |
virtual void | roll (double rollAngle) |
virtual void | orbit (double xOrbit, double yOrbit) |
virtual void | zoom (double zoomFactor) |
virtual void | pan (double xPan, double yPan) |
virtual void | setView (const OdGePoint3d &position, const OdGePoint3d &target, const OdGeVector3d &upVector, double fieldWidth, double fieldHeight, Projection projection=kParallel) |
virtual void | zoomExtents (const OdGePoint3d &minPt, const OdGePoint3d &maxPt) |
virtual void | zoomWindow (const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight) |
virtual bool | pointInView (const OdGePoint3d &pt) const |
virtual bool | extentsInView (const OdGePoint3d &minPt, const OdGePoint3d &maxPt) const |
virtual void | viewportClipRegion (OdIntArray &counts, OdGePoint2dArray &vertices) const |
virtual void | viewportClipRegion (OdIntArray &counts, OdGsDCPointArray &dcPts) const |
virtual void | setViewportClipRegion (int numContours, const int *numVertices, const OdGePoint2d *vertices) |
virtual void | setViewportClipRegion (int numContours, int const *numVertices, OdGsDCPoint const *vertices) |
bool | isDependentViewportView () const |
bool | isDependentGeometryView () const |
bool | isHelperView () const |
const OdGsBaseModule * | getGsModulePtr () const |
const OdGiContextualColors * | contextualColors () const |
void | setContextualColors (OdGiContextualColors *pColors) |
virtual bool | pointInViewport (const OdGePoint2d &screenPoint) const |
virtual void | setClearColor (ClearColor color) |
virtual void | invalidate () |
virtual void | invalidate (const OdGsDCRect &rect) |
virtual void | invalidateCachedViewportGeometry () |
virtual void | select (const OdGsDCPoint *points, int numPoints, OdGsSelectionReactor *pReactor, SelectionMode mode=kCrossing) |
virtual bool | add (OdGiDrawable *sceneGraph, OdGsModel *model) |
virtual int | numRootDrawables () const |
virtual OdDbStub * | rootDrawableIdAt (int i, OdGsModelPtr *pModelReturn=0) const |
virtual OdGiDrawablePtr | rootDrawableAt (int i, OdGsModelPtr *pModelReturn=0) const |
virtual bool | erase (OdGiDrawable *sceneGraph) |
virtual void | eraseAll () |
virtual OdGsModel * | getModel (const OdGiDrawable *pDrawable) const |
virtual OdGsModelArray | getModelList () const |
virtual bool | isValid () const |
virtual void | getNumPixelsInUnitSquare (const OdGePoint3d &givenWorldpt, OdGePoint2d &pixelArea, bool includePerspective=true) const |
virtual void | setBackground (OdDbStub *backgroundId) |
virtual OdDbStub * | background () const |
virtual void | setVisualStyle (OdDbStub *visualStyleId) |
virtual OdDbStub * | visualStyle () const |
virtual void | setVisualStyle (const OdGiVisualStyle &visualStyle) |
virtual bool | visualStyle (OdGiVisualStyle &vs) const |
virtual void | enableDefaultLighting (bool bEnable, DefaultLightingType lightType=kTwoLights) |
bool | defaultLightingEnabled () const |
DefaultLightingType | defaultLightingType () const |
OdUInt32 | viewportId () const |
bool | isValidViewportId (const OdUInt32 vpId) const |
OdDbStub * | getViewportObjectId () const |
OdGsBaseVectorizeDevice * | baseDevice () |
const OdGsBaseVectorizeDevice * | baseDevice () const |
OdDbStub * | annotationScaleId () const |
OdIntPtr | drawablesFilterFunction () const |
virtual bool | viewExtents (OdGeBoundBlock3d &extents) const =0 |
virtual void | select (const OdGePoint2d *aPtDc, int numPoints, OdGsSelectionReactor *pReactor, SelectionMode mode=kCrossing)=0 |
bool | isSnapping () const |
void | setSnapping (bool val) |
bool | isRegenOnDrawForbidden () const |
void | setRegenOnDrawForbidden (bool val) |
bool | isAccumulateVpChanges () const |
virtual void | clearLinetypeCache ()=0 |
double | linetypeAlternateScaleMultiplier () const |
virtual bool | isSupportLegacyWireframeMode () const |
virtual bool | isLegacyWireframeMode () const |
virtual void | setLegacyWireframeMode (bool bSet) |
virtual bool | isSupportLegacyHiddenMode () const |
virtual bool | isLegacyHiddenMode () const |
virtual void | setLegacyHiddenMode (bool bSet) |
bool | isSupportPlotStyles () const |
virtual bool | isPlotTransparency () const |
virtual void | setPlotTransparency (bool bSet) |
OdUInt32 | frozenLayers () const |
void | frozenLayers (OdDbStubPtrArray &frozenLayers) const |
bool | isLayerVisible (OdDbStub *layerId) const |
int | lineweightToPixels (OdDb::LineWeight lineweight) const |
double | lineweightToPixels (double lineweight) const |
void | screenRect (OdGsDCPoint &lowerLeft, OdGsDCPoint &upperRight) const |
void | screenRect (OdGePoint2d &lowerLeft, OdGePoint2d &upperRight) const |
void | screenRectNorm (OdGsDCRect &normalizedRect) const |
void | viewportDcCorners (OdGePoint2d &lower_left, OdGePoint2d &upper_right) const |
bool | doPerspectivePt (OdGePoint3d &point) const |
bool | doInversePerspectivePt (OdGePoint3d &point) const |
const OdGeMatrix3d & | eyeToWorldMatrix () const |
const OdGeMatrix3d & | worldToEyeMatrix () const |
OdGeMatrix3d | eyeToScreenMatrix (OdGsOverlayId nOverlay=kGsMainOverlay) const |
OdGeMatrix3d | worldToDeviceMatrix (OdGsOverlayId nOverlay) const |
OdGeMatrix3d | objectToDeviceMatrix (OdGsOverlayId nOverlay) const |
OdGeMatrix3d | projectionMatrix (OdUInt32 nIncludes, OdGsOverlayId nOverlay=kGsMainOverlay) const |
ClearColor | clearColor () const |
OdGsOverlayId | extentsToPixels (OdGsDCRect &rc, const OdGeExtents3d &worldExt, const OdGsBaseModel *pModel, OdDb::LineWeight extendByLineweight=OdDb::kLnWt000) const |
virtual void | invalidate (const OdGeExtents3d &worldExt, const OdGsBaseModel *pModel, OdDb::LineWeight extendByLineweight=OdDb::kLnWt000) |
void | invalidate (const OdGsUpdateExtents &extents, const OdGsBaseModel *pModel) |
void | invalidateRegion (const OdGiPathNode &path) |
OdGsDCRectArray | invalidRects (OdGsOverlayId nOverlay=kGsMainOverlay) const |
bool | isViewportOnScreen () const |
bool | isCompletelyVisible () const |
void | setCompletelyVisible (bool val) |
void | setInversion (bool invertedX, bool invertedY) |
virtual OdGiRegenType | getRegenType () const |
double | focalLength () const |
const OdGeVector3d & | eyeVector () const |
const OdGeVector3d & | xVector () const |
const OdGeVector3d & | getUpVector () const |
double | getLinetypeScaleMultiplier () const |
double | getLinetypeGenerationCriteria () const |
virtual double | getDeviation (const OdGiDeviationType deviationType, const OdGePoint3d &pointOnCurve, bool bRecalculate=false) const |
void | initDeviation () |
int | cachedDrawables () const |
OdUInt32 | localViewportId (const OdGsBaseModel *pModel) const |
virtual bool | isLocalViewportIdCompatible (const OdGsViewImpl *pView) const |
OdGsViewLocalId & | getViewLocalId () |
virtual bool | isViewRegenerated () const |
const OdGePoint2d & | center () const |
void | setCenter (const OdGePoint2d ¢er) |
OdGePoint3d | focusPoint () const |
bool | isNonRectClipped () const |
bool | hasLweights () const |
const OdUInt8Array & | getLweightsEnum () const |
const OdGePoint2d & | dcScreenMin () const |
const OdGePoint2d & | dcScreenMax () const |
const OdGePoint2d & | dcLowerLeft () const |
const OdGePoint2d & | dcUpperRight () const |
OdGeMatrix3d | perspectiveMatrix () const |
void | invalidateCachedViewportGeometry (OdUInt32 mask) |
virtual void | registerOverlay (const OdGsModel *pModel) |
virtual void | unregisterOverlay (const OdGsModel *pModel) |
virtual int | partialUpdateExtentsEnlargement () const |
double | calcDeviation (const OdGiDeviationType type, const OdGePoint3d &pt) const |
OdGsPropertiesPtr | getViewportPropertiesRoot () const |
bool | updateViewportProperties (OdUInt32 incFlags) |
OdGsPropertiesPtr | getViewportPropertiesForType (OdGsProperties::PropertiesType type) const |
const OdGeMatrix3d & | rotationMatrix () const |
short | viewportRotation () const |
bool | isRotated () const |
double | unrotatedFieldHeight () const |
double | unrotatedFieldWidth () const |
double | actualFieldWidth () const |
double | actualFieldHeight () const |
virtual void | initCullingVolume () |
void | setCullingVolume (OdGsCullingVolumePtr newVol) |
OdGsCullingVolumePtr | cullingVolume () const |
virtual bool | isCullingVolumeInitialized () const |
virtual bool | cullingVolumeIntersectWithOpt (const OdGsCullingPrimitive &prim) const |
virtual OdGsCullingVolume::IntersectionStatus | cullingVolumeIntersectWith (const OdGsCullingPrimitive &prim) const |
virtual void | cullingVolumeTransformBy (const OdGeMatrix3d &xfm) |
virtual void | setViewport3dClipping (const OdGiClipBoundary *pBoundary, const OdGiAbstractClipBoundary *pClipInfo=NULL) |
virtual const OdGiClipBoundary * | viewport3dClipping (const OdGiAbstractClipBoundary **ppClipInfo=NULL) const |
OdGiClipBoundaryWithAbstractData * | viewport3dClippingObject () |
bool | hasViewport3dClipping () const |
virtual bool | saveViewState (OdGsFiler *pFiler) const |
virtual bool | loadViewState (OdGsFiler *pFiler) |
virtual bool | saveClientViewState (OdGsFiler *pFiler) const |
virtual bool | loadClientViewState (OdGsFiler *pFiler) |
virtual const OdDbStubPtrArray & | getFrozenLayersDiff () const |
virtual void | collide (OdGiPathNode const *const *pInputList, OdUInt32 nInputListSize, OdGsCollisionDetectionReactor *pReactor, OdGiPathNode const *const *pCollisionWithList=NULL, OdUInt32 nCollisionWithListSize=0, const OdGsCollisionDetectionContext *pCtx=NULL)=0 |
virtual void | enableAntiAliasing (OdUInt32 nMode) |
virtual OdUInt32 | antiAliasingMode () const |
virtual void | enableSSAO (bool bEnable) ODRX_OVERRIDE |
virtual bool | ssaoMode () const ODRX_OVERRIDE |
void | addClippingShape (const OdSiShape *) |
void | removeClippingShape (const OdSiShape *) |
const OdSiShapeConstPtrArray & | clippingShapes () const |
void | setClippingShapes (const OdSiShapeConstPtrArray &s) |
Public Member Functions inherited from OdGsView | |
ODRX_DECLARE_MEMBERS (OdGsView) | |
virtual OdGsDevice * | device () const =0 |
virtual OdGiContext * | userGiContext () const =0 |
virtual void | setUserGiContext (OdGiContext *pUserGiContext)=0 |
virtual double | lineweightToDcScale () const =0 |
virtual void | setLineweightToDcScale (double scale)=0 |
virtual void | setLineweightEnum (int numLineweights, const OdUInt8 *lineweights)=0 |
virtual void | setViewport (const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight)=0 |
virtual void | setViewport (const OdGsDCRect &screenRect)=0 |
virtual void | setViewport (const OdGsDCRectDouble &screenRect) |
virtual void | getViewport (OdGePoint2d &lowerLeft, OdGePoint2d &upperRight) const =0 |
virtual void | getViewport (OdGsDCRect &screenRect) const =0 |
virtual void | getViewport (OdGsDCRectDouble &screenRect) const |
virtual void | setViewportClipRegion (int numContours, int const *numVertices, OdGsDCPoint const *vertices)=0 |
virtual void | setViewportClipRegion (int numContours, int const *numVertices, OdGePoint2d const *vertices)=0 |
virtual void | viewportClipRegion (OdIntArray &counts, OdGsDCPointArray &vertices) const =0 |
virtual void | viewportClipRegion (OdIntArray &counts, OdGePoint2dArray &vertices) const =0 |
void | removeViewportClipRegion () |
virtual void | setViewport3dClipping (const OdGiClipBoundary *pBoundary, const OdGiAbstractClipBoundary *pClipInfo=NULL) |
virtual const OdGiClipBoundary * | viewport3dClipping (const OdGiAbstractClipBoundary **ppClipInfo=NULL) const |
void | removeViewport3dClipping () |
virtual void | setViewportBorderProperties (ODCOLORREF color, int width)=0 |
virtual void | getViewportBorderProperties (ODCOLORREF &color, int &width) const =0 |
virtual void | setViewportBorderVisibility (bool visible)=0 |
virtual bool | isViewportBorderVisible () const =0 |
virtual void | setView (const OdGePoint3d &position, const OdGePoint3d &target, const OdGeVector3d &upVector, double fieldWidth, double fieldHeight, Projection projectionType=kParallel)=0 |
virtual OdGePoint3d | position () const =0 |
virtual OdGePoint3d | target () const =0 |
virtual OdGeVector3d | upVector () const =0 |
virtual double | lensLength () const =0 |
virtual void | setLensLength (double lensLength)=0 |
virtual bool | isPerspective () const =0 |
virtual double | fieldWidth () const =0 |
virtual double | fieldHeight () const =0 |
virtual void | setEnableFrontClip (bool enable)=0 |
virtual bool | isFrontClipped () const =0 |
virtual void | setFrontClip (double frontClip)=0 |
virtual double | frontClip () const =0 |
virtual void | setEnableBackClip (bool enable)=0 |
virtual bool | isBackClipped () const =0 |
virtual void | setBackClip (double backClip)=0 |
virtual double | backClip () const =0 |
virtual OdGeMatrix3d | viewingMatrix () const =0 |
virtual OdGeMatrix3d | projectionMatrix () const =0 |
virtual OdGeMatrix3d | screenMatrix () const =0 |
virtual OdGeMatrix3d | worldToDeviceMatrix () const =0 |
virtual OdGeMatrix3d | objectToDeviceMatrix () const =0 |
virtual void | setMode (RenderMode mode)=0 |
virtual RenderMode | mode () const =0 |
virtual bool | add (OdGiDrawable *pSceneGraph, OdGsModel *pModel)=0 |
virtual int | numRootDrawables () const =0 |
virtual OdDbStub * | rootDrawableIdAt (int i, OdGsModelPtr *pModelReturn=0) const =0 |
virtual OdGiDrawablePtr | rootDrawableAt (int i, OdGsModelPtr *pModelReturn=0) const =0 |
virtual bool | erase (OdGiDrawable *sceneGraph)=0 |
virtual void | eraseAll ()=0 |
virtual OdGsModel * | getModel (const OdGiDrawable *pDrawable) const =0 |
virtual OdGsModelArray | getModelList () const =0 |
virtual void | invalidate ()=0 |
virtual void | invalidate (const OdGsDCRect &screenRect)=0 |
virtual bool | isValid () const =0 |
virtual void | update ()=0 |
virtual void | beginInteractivity (double frameRateInHz)=0 |
virtual bool | isInInteractivity () const =0 |
virtual double | interactivityFrameRate () const =0 |
virtual void | endInteractivity ()=0 |
virtual void | flush ()=0 |
virtual void | hide ()=0 |
virtual void | show ()=0 |
virtual bool | isVisible ()=0 |
virtual void | freezeLayer (OdDbStub *layerID)=0 |
virtual void | thawLayer (OdDbStub *layerID)=0 |
virtual void | clearFrozenLayers ()=0 |
virtual void | invalidateCachedViewportGeometry ()=0 |
virtual void | select (const OdGsDCPoint *pts, int nPoints, OdGsSelectionReactor *pReactor, OdGsView::SelectionMode mode=OdGsView::kCrossing)=0 |
virtual void | dolly (const OdGeVector3d &dollyVector)=0 |
virtual void | dolly (double xDolly, double yDolly, double zDolly)=0 |
virtual void | roll (double rollAngle)=0 |
virtual void | orbit (double xOrbit, double yOrbit)=0 |
virtual void | zoom (double zoomFactor)=0 |
virtual void | pan (double xPan, double yPan)=0 |
virtual void | zoomExtents (const OdGePoint3d &minPt, const OdGePoint3d &maxPt)=0 |
virtual void | zoomWindow (const OdGePoint2d &lowerLeft, const OdGePoint2d &upperRight)=0 |
virtual bool | pointInView (const OdGePoint3d &pt) const =0 |
virtual bool | extentsInView (const OdGePoint3d &minPt, const OdGePoint3d &maxPt) const =0 |
virtual OdGsViewPtr | cloneView (bool cloneViewParameters=true, bool cloneGeometry=false)=0 |
virtual void | viewParameters (OdGsView *pView) const =0 |
virtual bool | exceededBounds ()=0 |
virtual void | enableStereo (bool enabled)=0 |
virtual bool | isStereoEnabled () const =0 |
virtual void | setStereoParameters (double magnitude, double parallax)=0 |
virtual void | getStereoParameters (double &magnitude, double ¶llax) const =0 |
virtual void | initLights (OdRxIterator *pLightsIterator)=0 |
virtual void | setLinetypeScaleMultiplier (double linetypeScaleMultiplier)=0 |
virtual double | linetypeScaleMultiplier () const =0 |
virtual void | setAlternateLinetypeScaleMultiplier (double linetypeAlternateScaleMultiplier)=0 |
virtual double | linetypeAlternateScaleMultiplier () const =0 |
virtual void | clientViewInfo (OdGsClientViewInfo &clientViewInfo) const |
virtual void | setClearColor (ClearColor color)=0 |
virtual bool | pointInViewport (const OdGePoint2d &screenPoint) const =0 |
virtual void | getNumPixelsInUnitSquare (const OdGePoint3d &point, OdGePoint2d &pixelDensity, bool bUsePerspective=true) const =0 |
virtual void | setBackground (OdDbStub *backgroundId)=0 |
virtual OdDbStub * | background () const =0 |
virtual void | setVisualStyle (OdDbStub *visualStyleId)=0 |
virtual OdDbStub * | visualStyle () const =0 |
virtual void | setVisualStyle (const OdGiVisualStyle &visualStyle)=0 |
virtual bool | visualStyle (OdGiVisualStyle &visualStyle) const =0 |
virtual void | enableDefaultLighting (bool bEnable, DefaultLightingType lightType=kTwoLights)=0 |
virtual void | getSnapShot (OdGiRasterImagePtr &pImage, const OdGsDCRect ®ion)=0 |
virtual void | collide (OdGiPathNode const *const *pInputList, OdUInt32 nInputListSize, OdGsCollisionDetectionReactor *pReactor, OdGiPathNode const *const *pCollisionWithList=NULL, OdUInt32 nCollisionWithListSize=0, const OdGsCollisionDetectionContext *pCtx=NULL)=0 |
virtual void | enableAntiAliasing (OdUInt32 nMode)=0 |
virtual OdUInt32 | antiAliasingMode () const =0 |
virtual void | enableSSAO (bool bEnable)=0 |
virtual bool | ssaoMode () const =0 |
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 |
Static Public Member Functions | |
static OdGsViewImpl * | safeCast (OdGsView *pView) |
static const OdGsViewImpl * | safeCast (const OdGsView *pView) |
static double | lensLengthToFOV (double lensLength) |
static double | lensLengthFromFOV (double fovAngle) |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Protected Member Functions | |
void | getUnrotatedFieldSize (double &fieldWidth, double &fieldHeight) const |
void | getClippingPlanes (double &nearClipPlaneDist, double &farClipPlaneDist, OdGsOverlayId overlayId, OdUInt32 projectionFlags) const |
OdGeMatrix3d | projectionMatrix (double nearClipPlaneDist, double farClipPlaneDist, OdUInt32 projectionFlags) const |
OdGeMatrix3d | eyeToScreenMatrix (double nearClipPlaneDist, double farClipPlaneDist, OdGsOverlayId overlayId) const |
OdGeMatrix3d | screenMatrix (double nearClipPlaneDist, double farClipPlaneDist) const |
virtual bool | sceneDept (double &zNear, double &zFar, OdGsOverlayId nOverlay) const |
virtual bool | sceneDept (double &zNear, double &zFar) const |
virtual bool | usesDept (double *pMinDeptSupported=0, double *pMaxDeptSupported=0) const |
void | onWorldToEyeChanged () |
void | onFinalRelease () |
virtual void | updateViewProps (bool bFullUpdate=true) |
bool | isCheckValid () const |
void | setCheckValid (bool bValue) const |
bool | isInvalid () const |
void | setInvalid (bool bValue) const |
void | setPerspectiveEnabled (bool bValue) const |
void | setAccumulateVpChanges (bool bSet) |
OdGiDrawablePtr | drawableAt (DrawableHolder &drawableHolder) |
OdGsNode * | getRootNode (DrawableHolder &holder) |
virtual void | propagateInvalidVpFlag () |
virtual void | propagateLayersChanges () |
Friends | |
class | GsViewImplHelper |
class | OdGiBaseVectorizerImpl |
class | OdGsBaseVectorizer |
class | OdGsBaseModule |
class | OdGsBaseVectorizeDevice |
This class implements Viewport objects in GUI display windows.
Corresponding C++ library: Gs
<group OdGs_Classes>
Definition at line 60 of file GsViewImpl.h.
Defines which components of a projection matrix are calculated.
Enumerator | |
---|---|
kProjectionIncludeDept | |
kProjectionIncludeClip | |
kProjectionIncludePerspective | |
kProjectionIncludeRotation | |
kProjectionIncludeAll | |
kProjectionIncludeAllNoDept |
Definition at line 1360 of file GsViewImpl.h.
OdGsViewImpl::OdGsViewImpl | ( | ) |
Default constructor for the OdGsViewImpl class. Sets the following data members:
member Value Description m_gsViewImplFlags kDefaultLightingEnabled View implementation specific flags m_pDevice 0 Owning device m_borderColor ODRGB(0,0,0) View border color m_borderWeight 0 View border width m_frontClipDist 1.0 Front clipping distance m_backClipDist 0.0 Back clipping distance m_position OdGePoint3d::kOrigin - OdGeVector3d::kZAxis Camera position m_target OdGePoint3d::kOrigin Camera target m_upVector OdGeVector3d::kYAxis Camera "up" vector m_dcUpperRight 1.0,1.0 Upper right corner of window in device coordinates m_dcScreenMax 1.0,1.0 Maximum screen dimensions in device coordinates m_screenInvertedX false Screen inverted by x axis m_screenInvertedY true Screen inverted by x axis m_fieldWidth 1.0 Camera field width m_fieldHeight 1.0 Camera field height m_lensLength 50. Camera lens length m_eyeVecLength 1. Camera eye vector length m_linetypeScaleMultiplier 1.0 Linetype scale multiplier m_linetypeAlternateScaleMultiplier 1.0 Alternative linetype scale multiplier m_lineweightToDcScale 1.0 Lineweight scale relative to device coordinates m_nCachedDrawables 0 Number of cached drawables m_pBackgroundId NULL Identifier of a view background m_pVisualStyleId NULL Identifier of a visual style m_defaultLightingType OdGsView::kTwoLights Default lighting type m_regenerationType kOdGiStandardDisplay Regeneration type m_renderMode k2DOptimized Render mode m_xVector OdGeVector3d::kXAxis Vector that defines x axis. m_eyeVector OdGeVector3d::kZAxis Camera eye vector m_bInInteractivityMode false Flag whether to use interactivity mode m_dInteractivityFrameRate 1.0 Frame rate for the interactivity mode
This constructor also sets this view as invalid and sets clear color to kPaletteBackground.
OdGsViewImpl::~OdGsViewImpl | ( | ) |
Destructor for the OdGsViewImpl class. Calls onFinalRelease(), eraseAll() and frees device slot manager slot from viewport id, if necessary.
|
inline |
Returns actual field height variable (without considering aspect ratio).
Definition at line 2413 of file GsViewImpl.h.
|
inline |
Returns actual field width variable (without considering aspect ratio).
Definition at line 2408 of file GsViewImpl.h.
|
virtual |
Adds the specified scene graph to this Viewport object.
pSceneGraph | [in] Pointer to the root of the scene graph. |
pModel | [in] Pointer to the Model object to which all scene graph notifications are to be directed. |
Implements OdGsView.
Adds a clipping shape to the array of clipping shapes.
pClippingShape | [in] Pointer to the clipping shape to add. |
Definition at line 2418 of file GsViewImpl.h.
OdDbStub * OdGsViewImpl::annotationScaleId | ( | ) | const |
Retrieves the Object ID of the annotation scale object associated with this view.
|
inlinevirtual |
Returns anti-aliasing mode for current Viewport object.
Implements OdGsView.
Definition at line 2293 of file GsViewImpl.h.
|
virtual |
Returns the back clip distance from the target of this Viewport object.
Implements OdGsView.
|
virtual |
Returns current background object ID for this view.
Implements OdGsView.
|
inline |
Returns the OdGsBaseVectorizeDevice associated with this Viewport object.
Definition at line 1139 of file GsViewImpl.h.
|
inline |
Returns the OdGsBaseVectorizeDevice associated with this Viewport object.
Definition at line 1144 of file GsViewImpl.h.
|
virtual |
Puts this Viewport object into interactive state.
frameRateInHz | [in] Frames/second. |
Implements OdGsView.
|
inline |
Returns the number of cached drawables for this view object.
Definition at line 1508 of file GsViewImpl.h.
double OdGsViewImpl::calcDeviation | ( | const OdGiDeviationType | type, |
const OdGePoint3d & | pt | ||
) | const |
Calculates and returns recommended maximum deviation of the current vectorization for the specified deviation type.
deviationType | [in] Deviation type. |
pointOnCurve | [in] Point on curve. Used only if 'bRecalculate' is true. |
Value kOdGiMaxDevForCircle 0
kOdGiMaxDevForCurve 1
kOdGiMaxDevForBoundary 2
kOdGiMaxDevForIsoline 3 kOdGiMaxDevForFacet 4
const OdGePoint2d & OdGsViewImpl::center | ( | ) | const |
ClearColor OdGsViewImpl::clearColor | ( | ) | const |
Retrieves the clear color of this view.
|
virtual |
Thaws all Layer objects in this Viewport object.
Implements OdGsView.
|
pure virtual |
Clears linetype cache.
Implemented in OdGsBaseVectorizeViewJoin< BaseVectorizerObject >, OdGsBaseVectorizeViewJoin< OdGsBaseMaterialViewPC >, and OdGsBaseVectorizeViewJoin< OdGsBaseVectorizer >.
|
virtual |
Returns the ClientViewInfo for this Viewport object.
clientViewInfo | [out] Receives the ClientViewInfo. |
Reimplemented from OdGsView.
|
inline |
Retrieves the array of pointers to clipping shapes.
Definition at line 2431 of file GsViewImpl.h.
|
virtual |
Clones this view object.
cloneViewParameters | [in] If this flag is set, view parameters will be cloned. |
cloneGeometry | [in] If this flag is set, geometry will be cloned. |
Implements OdGsView.
|
pure virtual |
Runs collision detection procedure inside this Viewport object.
pInputList | [in] Pointer to the list of objects to check |
nInputListSize | [in] Size of the list of objects to check |
pCollisionWithList | [in] Pointer to the list of possible colliding objects |
nCollisionWithListSize | [in] Size of the list of possible colliding objects |
pCtx | [in] Pointer to the OdGsCollisionDetectionContext that provide additional Collision Detection options |
Implements OdGsView.
Implemented in OdGsBaseVectorizeView.
|
inline |
Returns pointer to context-dependent colors storage.
Definition at line 2231 of file GsViewImpl.h.
OdGsCullingVolumePtr OdGsViewImpl::cullingVolume | ( | ) | const |
Returns culling volume associated with current view.
|
virtual |
Complete intersection test between culling volume associated with current view and culling primitive.
prim | [in] Input primitive for culling detection. |
|
virtual |
Optimized intersection test between culling volume associated with current view and culling primitive.
prim | [in] Input primitive for culling detection. |
|
virtual |
Applies transformation for culling volume associated with current view.
xfm | [in] Transformation matrix. |
|
inline |
Retrieves lower left point of this viewport in device coordinates.
Definition at line 1627 of file GsViewImpl.h.
|
inline |
Retrieves screen minimum point in device coordinates.
Definition at line 1622 of file GsViewImpl.h.
|
inline |
Retrieves screen minimum point in device coordinates.
Definition at line 1617 of file GsViewImpl.h.
|
inline |
Retrieves upper right point of this viewport in device coordinates.
Definition at line 1632 of file GsViewImpl.h.
|
inline |
Checks whether default lighting is enabled.
Definition at line 2274 of file GsViewImpl.h.
|
inline |
Returns default lighting type which can be one of the following:
Value Description kOneLight 0 Single front light. kTwoLights 1 Front and back lights. kBackLight 2 Single back light.
Definition at line 2279 of file GsViewImpl.h.
|
virtual |
Returns the GsDevice object associated with this Viewport object.
Implements OdGsView.
bool OdGsViewImpl::doInversePerspectivePt | ( | OdGePoint3d & | point | ) | const |
Applies the inverse of the current perspective transformation to the specified point.
point | [in/out] Any 3D point. |
|
virtual |
Translates the camera position and target by the specified Camera Coordinate dolly amount.
dollyVector | [in] Camera Coordinate dolly vector. |
Implements OdGsView.
|
virtual |
Translates the camera position and target by the specified Camera Coordinate dolly amount.
xDolly | [in] Camera Coordinate X dolly amount. |
yDolly | [in] Camera Coordinate Y dolly amount. |
zDolly | [in] Camera Coordinate Z dolly amount. |
Implements OdGsView.
bool OdGsViewImpl::doPerspectivePt | ( | OdGePoint3d & | point | ) | const |
Applies the current perspective transformation to the specified point.
point | [in/out] Any 3D point. |
|
protected |
Returns the OdGiDrawable associated with the specified DrawableHolder object.
drawableHolder | [in] Drawable holder. |
OdIntPtr OdGsViewImpl::drawablesFilterFunction | ( | ) | const |
Retrieves internal drawable filtration function ID.
Enable or disable anti-aliasing in current Viewport object.
nLevel | [in] Anti-aliasing mode (set as 3 by default). Set as 0 to disable anti-aliasing. |
Implements OdGsView.
Definition at line 2284 of file GsViewImpl.h.
|
virtual |
Enables default lighting for this view.
bEnable | [in] New default lighting state. |
lightType | [in] New default lighting type. |
Implements OdGsView.
|
inlinevirtual |
Enables or disables ambient occlusion in current Viewport object.
bEnable | [in] Ambient occlusion mode (set as true by default). Set as false to disable ambient occlusion. |
Implements OdGsView.
Definition at line 2298 of file GsViewImpl.h.
|
virtual |
Controls stereo viewing for this Viewport object.
enable | [in] Controls stereo viewing. |
Implements OdGsView.
|
virtual |
Removes this Viewport object from the interactive state.
frameRateInHz | [in] Frames/second. |
Implements OdGsView.
|
virtual |
Removes the specified scene graph from this Viewport object.
sceneGraph | [in] Pointer to the root of the scene graph. |
Implements OdGsView.
|
virtual |
Removes all scene graphs from this Viewport object.
sceneGraph | [in] Root of scene graph. |
Implements OdGsView.
|
virtual |
Checks whether view parameters have exceeded their boundaries since the last call to this function.
dolly() orbit() pan() roll() setBackClip() setFrontClip() setView() zoom()
Implements OdGsView.
|
virtual |
Returns true if and only if specified WCS box is visible completely or partially inside current view frustum.
minPt | [in] minimal WCS box point. |
maxPt | [in] maximal WCS box point. |
Implements OdGsView.
OdGsOverlayId OdGsViewImpl::extentsToPixels | ( | OdGsDCRect & | rc, |
const OdGeExtents3d & | worldExt, | ||
const OdGsBaseModel * | pModel, | ||
OdDb::LineWeight | extendByLineweight = OdDb::kLnWt000 |
||
) | const |
|
protected |
OdGeMatrix3d OdGsViewImpl::eyeToScreenMatrix | ( | OdGsOverlayId | nOverlay = kGsMainOverlay | ) | const |
Returns the transformation matrix from EyeSpace to ScreenSpace for this Viewport object.
nOverlay | [in] Graphics system overlay index. |
|
inline |
Returns the transformation matrix from EyeSpace to WCS for this Viewport object.
Definition at line 2328 of file GsViewImpl.h.
|
inline |
Retrieves eye vector of the camera. Eye vector is the vector from camera position to the target.
Definition at line 1449 of file GsViewImpl.h.
|
virtual |
Returns the WCS projection plane (field) height for this Viewport object.
Implements OdGsView.
|
virtual |
Returns the WCS projection plane (field) width for this Viewport object.
Implements OdGsView.
|
virtual |
Flushes the graphic pipeline and renders this Viewport object.
Implements OdGsView.
double OdGsViewImpl::focalLength | ( | ) | const |
Returns the WCS (ECS) focal length of the lens for this view object.
OdGePoint3d OdGsViewImpl::focusPoint | ( | ) | const |
Returns focus point of the camera.
|
virtual |
Freezes the specified Layer object in this Viewport object.
layerID | [in] Layer to freeze. |
Implements OdGsView.
|
virtual |
Returns the front clip distance from the target of this Viewport object.
Implements OdGsView.
|
inline |
Returns count of frozen layers in this view.
Definition at line 1232 of file GsViewImpl.h.
|
inline |
Returns the frozen layers for this view object.
frozenLayers | [out] Receives an array of frozen layer Object IDs. |
Definition at line 1243 of file GsViewImpl.h.
|
protected |
|
virtual |
Retrieves the recommended maximum deviation of the current vectorization for the specified deviation type.
deviationType | [in] Deviation type. |
pointOnCurve | [in] Point on curve. Used only if 'bRecalculate' is true. |
bRecalculate | [in] Flag that specifies whether to recalculate deviation value with the provided point on curve. |
Value kOdGiMaxDevForCircle 0
kOdGiMaxDevForCurve 1
kOdGiMaxDevForBoundary 2
kOdGiMaxDevForIsoline 3 kOdGiMaxDevForFacet 4
|
virtual |
Returns array of calculated during propagateLayersChanges() call frozen layer differences.
|
inline |
Retrieves pointer to the associated GS module.
Definition at line 2226 of file GsViewImpl.h.
double OdGsViewImpl::getLinetypeGenerationCriteria | ( | ) | const |
Returns the WCS value below which linetype generation is not used.
double OdGsViewImpl::getLinetypeScaleMultiplier | ( | ) | const |
Retrieves a multiplier that is used to scale all linetypes in this Viewport object.
|
inline |
Retrieves an array of lineweights.
Definition at line 1612 of file GsViewImpl.h.
|
virtual |
Returns OdGsModel object associated with specified OdGiDrawable object in this Viewport object.
pDrawable | [in] Pointer onto OdGiDrawable object. |
Implements OdGsView.
|
virtual |
|
virtual |
Returns the display pixel density at the specified point for this Viewport object.
givenWorldpt | [in] WCS center of the unit square. |
pixelArea | [out] Receives the pixel density. |
includePerspective | [in] Enable perspective inclusion into pixel density calculation. |
Implements OdGsView.
|
inlinevirtual |
Retrieves regeneration type of this view.
Definition at line 1439 of file GsViewImpl.h.
|
protected |
|
virtual |
Returns image of current view buffer.
pImage | [out] Pointer for image to return. |
region | [in] Rectangle specifies region to return. |
Implements OdGsView.
|
virtual |
Returns the stereo parameters for this Viewport Object.
magnitude | [out] Receives the view separation [0.0 .. 2.0]. |
parallax | [out] Receives the plane of zero parallax adjustment [0.0 .. 2.0]. |
Implements OdGsView.
|
protected |
|
inline |
Retrieves up vector of the camera (y-axis). Up vector defines which orientation is "upward" for camera.
Definition at line 1459 of file GsViewImpl.h.
|
inline |
Definition at line 1521 of file GsViewImpl.h.
|
virtual |
Returns the size and position of this Viewport object.
lowerLeft | [out] Receives the lower-left corner in nomalized device coordinates [0.0 .. 1.0]. |
upperRight | [out] Receives the upper-right corner in nomalized device coordinates [0.0 .. 1.0]. |
screenRect | [out] Receives the screen rectangle in device coordinates (pixels). |
Implements OdGsView.
|
virtual |
Returns the size and position of this Viewport object.
lowerLeft | [out] Receives the lower-left corner in nomalized device coordinates [0.0 .. 1.0]. |
upperRight | [out] Receives the upper-right corner in nomalized device coordinates [0.0 .. 1.0]. |
screenRect | [out] Receives the screen rectangle in device coordinates (pixels). |
Implements OdGsView.
|
virtual |
Returns the size and position of this Viewport object.
screenRect | [out] Receives the screen rectangle in device coordinates (pixels). |
Reimplemented from OdGsView.
|
virtual |
Returns the color and width of the border for this Viewport object.
color | [out] Receives the border color. |
width | [out] Receives the border width in pixels. |
Implements OdGsView.
|
inline |
Returns the Object ID of the OdDbViewport object associated with this object.
Definition at line 1134 of file GsViewImpl.h.
OdGsPropertiesPtr OdGsViewImpl::getViewportPropertiesForType | ( | OdGsProperties::PropertiesType | type | ) | const |
Retrieves viewport properties by the specified property type.
type | [in] Property type to get. |
OdGsPropertiesPtr OdGsViewImpl::getViewportPropertiesRoot | ( | ) | const |
Retrieves viewport properties.
|
inline |
Checks whether this object has lineweights.
Definition at line 1607 of file GsViewImpl.h.
|
inline |
Returns true if and only if 3d clipping set for this Viewport object.
Definition at line 2403 of file GsViewImpl.h.
|
virtual |
Initializes this Viewport object.
pDevice | [in] Pointer to the OdGsBaseVectorizeDevice associated with this Viewport object. |
pViewInfo | [in] Pointer to the Client View Information for this Viewport object. |
enableLayerVisibilityPerView | [in] Layer visibility per viewport is supported, if and only if true. |
|
virtual |
Initialize culling volume, associated with current view.
void OdGsViewImpl::initDeviation | ( | ) |
Starts calculation of initial deviation values for all deviation types.
|
virtual |
Returns an iterator to traverse the lights attached to this Viewport object.
pLightsIterator | [in] Pointer to the lights iterator. |
Implements OdGsView.
|
virtual |
Returns interactivity frame rate.
Implements OdGsView.
|
virtual |
Marks the entire area of this View for refreshing.
Implements OdGsView.
|
virtual |
|
virtual |
Marks for refresh the specified region of this Viewport object.
rect | [in] Screen rectangle in device coordinates (pixels). |
Implements OdGsView.
|
inline |
Marks a part of area (represented by provided extents) of this view as invalid.
extents | [in] Part of view for invalidation. |
pModel | [in] Pointer to a model. |
Definition at line 2323 of file GsViewImpl.h.
|
virtual |
Marks for regeneration all subViewportDraw() geometry for this Viewport object.
Implements OdGsView.
Marks subViewportDraw geometry for regeneration.
mask | [in] Mask. |
void OdGsViewImpl::invalidateRegion | ( | const OdGiPathNode & | path | ) |
Marks a part of area (represented by provided path node) of this view as invalid.
path | [in] Path node for invalidation. |
OdGsDCRectArray OdGsViewImpl::invalidRects | ( | OdGsOverlayId | nOverlay = kGsMainOverlay | ) | const |
|
inline |
Definition at line 2378 of file GsViewImpl.h.
|
virtual |
Checks whether back clipping is enabled for this Viewport object.
Implements OdGsView.
|
inlineprotected |
Definition at line 2247 of file GsViewImpl.h.
|
inline |
Definition at line 2388 of file GsViewImpl.h.
|
virtual |
Checks whether culling volume associated with current view is initialized.
|
inline |
Definition at line 2216 of file GsViewImpl.h.
|
inline |
Definition at line 2211 of file GsViewImpl.h.
|
virtual |
Checks whether front clipping is enabled for this Viewport object.
Implements OdGsView.
|
inline |
Definition at line 2221 of file GsViewImpl.h.
|
virtual |
Checks whether this Viewport object is in interactive state.
Implements OdGsView.
|
inlineprotected |
Definition at line 2257 of file GsViewImpl.h.
bool OdGsViewImpl::isLayerVisible | ( | OdDbStub * | layerId | ) | const |
Checks whether the specified layer is visibile in this view.
layerId | [in] Persistent object identifier of a layer. |
|
virtual |
|
virtual |
|
virtual |
|
inline |
Checks whether there is non-rectangular clipping region.
Definition at line 2312 of file GsViewImpl.h.
|
virtual |
Returns true if and only if the projection type for this Viewport object is kPerspective.
Implements OdGsView.
|
virtual |
Checks transparency is plotted for this view.
|
inline |
Definition at line 2368 of file GsViewImpl.h.
|
inline |
Checks whether viewport is rotated.
Definition at line 2317 of file GsViewImpl.h.
|
inline |
Definition at line 2358 of file GsViewImpl.h.
|
virtual |
Checks whether stereo viewing is enabled for this Viewport object.
Implements OdGsView.
|
virtual |
|
virtual |
|
inline |
Checks whether this view supports plot styles rendering.
Definition at line 2242 of file GsViewImpl.h.
|
virtual |
Checks whether this Viewport shows the correct image.
Implements OdGsView.
bool OdGsViewImpl::isValidViewportId | ( | const OdUInt32 | vpId | ) | const |
Checks whether the passed viewport identifier is valid.
vpId | [in] Viewport ID. |
|
virtual |
Checks whether border is visible for this Viewport object.
Implements OdGsView.
bool OdGsViewImpl::isViewportOnScreen | ( | ) | const |
Check whether this viewport is displayed on screen.
|
virtual |
Checks whether view is regenerated.
|
virtual |
Checks whether this Viewport object is visible.
Implements OdGsView.
|
virtual |
Returns the perspective lens length for this Viewport object.
Implements OdGsView.
|
static |
Utility function to recompute field of view angle into lens length.
fovAngle | [in] Field of view angle in radians. |
|
static |
Utility function to recompute lens length into field of view angle.
lensLength | [in] Lens length in millimeters. |
|
virtual |
Retrieves alternate linetype scale multiplier.
Implements OdGsView.
|
virtual |
Returns current linetype scale multiplier value.
Implements OdGsView.
|
virtual |
Returns the scale factor for displaying Lineweights in this Viewport object.
Implements OdGsView.
double OdGsViewImpl::lineweightToPixels | ( | double | lineweight | ) | const |
Returns the number of pixels corresponding to the specified lineweight for this view object.
lineweight | [in] Lineweight. |
int OdGsViewImpl::lineweightToPixels | ( | OdDb::LineWeight | lineweight | ) | const |
Returns the number of pixels corresponding to the specified lineweight for this view object.
lineweight | [in] Lineweight. |
|
virtual |
Restores client view state from filer object. Must be implemented in client views.
pFiler | [in] Filer object. |
|
virtual |
Restores view state from filer object.
pFiler | [in] Filer object. |
|
inline |
Returns local viewport ID from the passed model.
pModel | [in] Pointer to GS model. |
Definition at line 1516 of file GsViewImpl.h.
|
virtual |
Sets the render mode for this Viewport object.
Value Description kBoundingBox -1 Bounding box. For internal use only. k2DOptimized 0 Standard display. Optimized for 2D. kWireframe 1 Standard display. Uses 3D pipeline. kHiddenLine 2 Wireframe display. Hidden lines removed. kFlatShaded 3 Faceted display. One color per face. kGouraudShaded 4 Smooth shaded display. Colors interpolated between vertices. kFlatShadedWithWireframe 5 Faceted display with wireframe overlay. kGouraudShadedWithWireframe 6 Smooth shaded display with wireframe overlay.
Implements OdGsView.
|
virtual |
Retrieves a quantity of root drawables for this viewport.
Implements OdGsView.
|
virtual |
Returns the matrix that transforms coordinates from model space to screen space for this Viewport object.
Implements OdGsView.
Reimplemented in OdGsBaseVectorizeViewJoin< BaseVectorizerObject >, OdGsBaseVectorizeViewJoin< OdGsBaseMaterialViewPC >, and OdGsBaseVectorizeViewJoin< OdGsBaseVectorizer >.
OdGeMatrix3d OdGsViewImpl::objectToDeviceMatrix | ( | OdGsOverlayId | nOverlay | ) | const |
Returns the matrix that transforms coordinates from model space to screen space for this Viewport object.
nOverlay | [in] Graphics system overlay index. |
OdGsViewImpl::ODRX_DECLARE_MEMBERS | ( | OdGsViewImpl | ) |
|
protected |
Notification function called whenever this ViewImpl object is about to be released.
|
protected |
Notification function called whenever the World to Eye transformation matrix has been changed.
|
virtual |
Orbits the camera about the target by the specified amounts.
xOrbit | [in] X-axis Orbit. |
yOrbit | [in] Y-axis Orbit. |
Implements OdGsView.
|
virtual |
Rotates the target about the camera the specified amounts.
xPan | [in] X-axis pan. |
yPan | [in] Y-axis pan. |
Implements OdGsView.
|
virtual |
Returns partial update rectange extension in pixels.
OdGeMatrix3d OdGsViewImpl::perspectiveMatrix | ( | ) | const |
Returns the perspective transformation matrix for this view object.
|
virtual |
Returns true if and only if specified point is visible inside current view frustum.
pt | [in] WCS point for check. |
Implements OdGsView.
|
virtual |
Checks whether the specified point is inside viewport area.
screenPoint | [in] Check point in device coordinate space. |
Implements OdGsView.
|
virtual |
Returns the WCS camera position for this Viewport object.
Implements OdGsView.
|
virtual |
Returns the matrix that transforms view space to normalized device space for this Viewport object.
Implements OdGsView.
|
protected |
OdGeMatrix3d OdGsViewImpl::projectionMatrix | ( | OdUInt32 | nIncludes, |
OdGsOverlayId | nOverlay = kGsMainOverlay |
||
) | const |
Returns the matrix that transforms view space to normalized device space for this Viewport object. This method takes into account which components should be included for the matrix and for which overlay to compute the matrix.
nIncludes | [in] Specifies which data should be included in the matrix, see ProjectionMatrixFlags. |
nOverlay | [in] Graphics system overlay index. |
|
protectedvirtual |
|
protectedvirtual |
Register the overlay for the specified model.
pModel | [in] Model which overlay should be registered. |
Removes a clipping shape from the array of clipping shapes.
pClippingShape | [in] Pointer to the clipping shape to remove. |
Definition at line 2424 of file GsViewImpl.h.
|
virtual |
Rotates the camera by the specified amount about the eye vector.
rollAngle | [in] Camera CCW roll angle. |
Implements OdGsView.
|
virtual |
Retrieves a smart pointer to transient root drawable at the specified index.
i | [in] Index of the drawable to return. |
pModelReturn | [in/out] If not NULL, receives a pointer to model of associated drawable holder. |
Implements OdGsView.
|
virtual |
Retrieves a persistent object identifier of the root drawable at the specified index.
i | [in] Index of the drawable to return. |
pModelReturn | [in/out] If not NULL, receives a pointer to model of associated drawable holder. |
Implements OdGsView.
const OdGeMatrix3d & OdGsViewImpl::rotationMatrix | ( | ) | const |
Retrieves viewport rotation matrix depending on viewport rotation. This method returns matrix for viewport rotation by 0, 90, 180 and 270 degrees.
|
inlinestatic |
Returns the specified OdGsView pointer as a pointer to an OdGsViewImpl object.
pView | [in] Pointer to an OdGsView object. |
Definition at line 2353 of file GsViewImpl.h.
|
inlinestatic |
Returns the specified OdGsView pointer as a pointer to an OdGsViewImpl object.
pView | [in] Pointer to an OdGsView object. |
Definition at line 2348 of file GsViewImpl.h.
|
virtual |
Stores client view state into filer object. Must be implemented in client views.
pFiler | [out] Filer object. |
|
virtual |
Stores current view state into filer object.
pFiler | [out] Filer object. |
|
protectedvirtual |
Reimplemented in OdGsBaseVectorizeView.
|
protectedvirtual |
Returns the minimum and maximum z-values for this view object.
zNear | [out] Receives the minimum z-value. |
zFar | [out] Receives the maximum z-value. |
nOverlay | [in] Overlay buffer index. |
Reimplemented in OdGsBaseVectorizeView.
|
virtual |
Returns the matrix that transforms normalized device space to screen space for this Viewport object.
Implements OdGsView.
|
protected |
void OdGsViewImpl::screenRect | ( | OdGePoint2d & | lowerLeft, |
OdGePoint2d & | upperRight | ||
) | const |
Retrieves screen points that represent a DCS rectangle.
lowerLeft | [out] Receives lower-left corner. |
upperRight | [out] Receives upper-right corner. |
void OdGsViewImpl::screenRect | ( | OdGsDCPoint & | lowerLeft, |
OdGsDCPoint & | upperRight | ||
) | const |
Retrieves screen points that represent a DCS rectangle.
lowerLeft | [out] Receives lower-left corner. |
upperRight | [out] Receives upper-right corner. |
void OdGsViewImpl::screenRectNorm | ( | OdGsDCRect & | normalizedRect | ) | const |
Retrieves screen DCS rectangle.
normalizedRect | [out] Receives a rectangle in normalized device coordinates. |
|
pure virtual |
Runs selection procedure inside this Viewport object.
aPtDc | [in] Selection points in device coordinate space. |
numPoints | [in] Count of selection points. |
pReactor | [in] Selection callback pointer. |
mode | [in] Selection mode. |
Implemented in OdGsBaseVectorizeView.
|
virtual |
Evokes the specified OdGsSelectionReactor object for the specified polygon in this VectorizeView object.
points | [in] Array of points. |
numPoints | [in] Number of points. |
pReactor | [in] Pointer to the reactor. |
mode | [in] Selection mode. |
Implements OdGsView.
|
inlineprotected |
Definition at line 2383 of file GsViewImpl.h.
|
virtual |
Sets a multiplier that could be used as an alternate scale factor for linetypes in this Viewport object.
linetypeAlternateScaleMultiplier | [in] Alternate linetype scale multiplier. |
Implements OdGsView.
|
virtual |
Sets the back clip distance from the target of this Viewport object.
distance | [in] Back clip distance. |
Implements OdGsView.
|
virtual |
Sets background object for this view.
backgroundId | [in] New background object ID. |
Implements OdGsView.
void OdGsViewImpl::setCenter | ( | const OdGePoint2d & | center | ) |
|
inlineprotected |
Definition at line 2252 of file GsViewImpl.h.
|
virtual |
|
inline |
Sets the array of pointers to clipping shapes. All previously set elements in the array are overrided.
s | [in] Array of pointers to clipping shapes. |
Definition at line 2436 of file GsViewImpl.h.
|
inline |
Definition at line 2393 of file GsViewImpl.h.
|
inline |
Sets contextual colors.
pColors | [in] Pointer to the context-dependent colors storage. |
Definition at line 2236 of file GsViewImpl.h.
void OdGsViewImpl::setCullingVolume | ( | OdGsCullingVolumePtr | newVol | ) |
Sets culling volume associated with current view.
newVol | [in] Smart pointer to new culling volume object. |
|
virtual |
Controls the back clipping of this Viewport object.
enable | [in] Enables or disables back clipping. |
Implements OdGsView.
|
virtual |
Controls the front clipping of this Viewport object.
enable | [in] Enables or disables front clipping. |
Implements OdGsView.
|
virtual |
Sets the front clip distance from the target of this Viewport object.
distance | [in] Front clip distance. |
Implements OdGsView.
|
inlineprotected |
Definition at line 2262 of file GsViewImpl.h.
void OdGsViewImpl::setInversion | ( | bool | invertedX, |
bool | invertedY | ||
) |
Specifies whether view should be inverted by x- or y- axis.
invertedX | [in] Specifies whether to invert the x-axis. |
invertedY | [in] Specifies whether to invert the y-axis. |
|
virtual |
|
virtual |
|
virtual |
Sets the perspective lens length for this Viewport object.
lensLength | [in] Perspective lens length. |
Implements OdGsView.
|
virtual |
Sets a multiplier that is used to scale all linetypes in this Viewport object.
linetypeScaleMultiplier | [in] Linetype scale multiplier. |
Implements OdGsView.
|
virtual |
Sets the lineweights for this Viewport object.
numLineweights | [in] Number of Lineweights. |
lineweights | [in] Array of Lineweights. |
Implements OdGsView.
|
virtual |
Sets the scale factor for displaying Lineweights in this Viewport object.
scale | [in] Scale factor. |
Implements OdGsView.
|
virtual |
Sets the render mode for this Viewport object.
mode | [in] Render mode. |
Value Description kBoundingBox -1 Bounding box. For internal use only. k2DOptimized 0 Standard display. Optimized for 2D. kWireframe 1 Standard display. Uses 3D pipeline. kHiddenLine 2 Wireframe display. Hidden lines removed. kFlatShaded 3 Faceted display. One color per face. kGouraudShaded 4 Smooth shaded display. Colors interpolated between vertices. kFlatShadedWithWireframe 5 Faceted display with wireframe overlay. kGouraudShadedWithWireframe 6 Smooth shaded display with wireframe overlay.
Implements OdGsView.
bool OdGsViewImpl::setModeOverride | ( | RenderMode | mode | ) |
Sets the render mode override for this Viewport object.
mode | [in] Render mode. |
Value Description kBoundingBox -1 Bounding box. For internal use only. k2DOptimized 0 Standard display. Optimized for 2D. kWireframe 1 Standard display. Uses 3D pipeline. kHiddenLine 2 Wireframe display. Hidden lines removed. kFlatShaded 3 Faceted display. One color per face. kGouraudShaded 4 Smooth shaded display. Colors interpolated between vertices. kFlatShadedWithWireframe 5 Faceted display with wireframe overlay. kGouraudShadedWithWireframe 6 Smooth shaded display with wireframe overlay.
|
inlineprotected |
Definition at line 2267 of file GsViewImpl.h.
|
virtual |
Specifies whether to plot transparency in this view.
bSet | [in] Flag that specifies whether to plot transparency. |
|
inline |
Definition at line 2373 of file GsViewImpl.h.
|
inline |
Definition at line 2363 of file GsViewImpl.h.
|
virtual |
Sets the stereo parameters for this Viewport Object.
magnitude | [in] View separation [0.0 .. 2.0]. |
parallax | [in] Adjusts the plane of zero parallax [0.0 .. 2.0]. |
Implements OdGsView.
|
virtual |
Sets the camera parameters for this Viewport object.
position | [in] Camera position. |
target | [in] Camera target. |
upVector | [in] Camera up vector. |
fieldWidth | [in] Projection plane (field) width. |
fieldHeight | [in] Projection plane (field) height. |
projectionType | [in] Projection type. |
Value kParallel 0 kPerspective 1
Implements OdGsView.
|
virtual |
Sets the size and position of this Viewport object.
lowerLeft | [in] Lower-left corner in nomalized device coordinates [0.0 .. 1.0]. |
upperRight | [in] Upper-right corner in nomalized device coordinates [0.0 .. 1.0]. |
Implements OdGsView.
|
virtual |
Sets the size and position of this Viewport object.
screenRect | [in] Screen rectangle in device coordinates (pixels). |
Implements OdGsView.
|
virtual |
Sets the size and position of this Viewport object.
screenRect | [in] Screen rectangle in device coordinates (pixels). |
Reimplemented from OdGsView.
|
virtual |
Defines the 3d clipping for this Viewport object.
pBoundary | [in] 3d clipping boundary. |
pClipInfo | [in] Optional 3d clipping boundary extended data. |
Reimplemented from OdGsView.
|
virtual |
Sets the color and width of the border for this Viewport object.
color | [in] Border color. |
width | [in] Border width in pixels. |
Implements OdGsView.
|
virtual |
Controls the border visibility for this Viewport object.
visible | [in] Controls visibility. |
Implements OdGsView.
|
virtual |
Defines a polygonal clip region for this Viewport object.
numCoutours | [in] Number of polygonal contours. |
numVertices | [in] Array of the number of vertices in each polygonal contour. |
vertices | [in] Array of device coordinate (pixel) vertices defining the polygonal contours. |
Implements OdGsView.
|
virtual |
Defines a polygonal clip region for this Viewport object.
numCoutours | [in] Number of polygonal contours. |
numVertices | [in] Array of the number of vertices in each polygonal contour. |
vertices | [in] Array of device coordinate (pixel) vertices defining the polygonal contours. |
Implements OdGsView.
|
virtual |
Sets visual style for this view.
visualStyle | [in] New visual style data. |
Implements OdGsView.
Reimplemented in OdGsBaseVectorizeViewJoin< BaseVectorizerObject >, OdGsBaseVectorizeViewJoin< OdGsBaseMaterialViewPC >, and OdGsBaseVectorizeViewJoin< OdGsBaseVectorizer >.
|
virtual |
Sets visual style object for this view.
visualStyleId | [in] New visual style object ID. |
Implements OdGsView.
|
inlinevirtual |
Returns ambient occlusion mode for current Viewport object.
Implements OdGsView.
Definition at line 2307 of file GsViewImpl.h.
|
virtual |
Returns the WCS camera target for this Viewport object.
Implements OdGsView.
|
virtual |
Thaws the specified Layer object in this Viewport object.
layerID | [in] Layer to thaw. |
Implements OdGsView.
Unregister the overlay for the specified model.
pModel | [in] Model which overlay should be unregistered. |
double OdGsViewImpl::unrotatedFieldHeight | ( | ) | const |
Returns field height of unrotated viewport considering window aspect ration.
+--------------—* m_dcScreenMax | | | | | | fieldHeight | | unrotatedFieldHeight | | |m_dcScreenMin | --------------—+ fieldWidth unrotatedFieldWidth
When viewport is rotated to 90 or 270: m_dcScreenMin --------------—+ | | | | | | fieldHeight | | unrotatedFieldWidth | | | | +--------------—* m_dcScreenMax fieldWidth unrotatedFieldHeight
double OdGsViewImpl::unrotatedFieldWidth | ( | ) | const |
Returns field width of unrotated viewport considering window aspect ration.
+--------------—* m_dcScreenMax | | | | | | fieldHeight | | unrotatedFieldHeight | | |m_dcScreenMin | --------------—+ fieldWidth unrotatedFieldWidth
When viewport is rotated to 90 or 270: m_dcScreenMin --------------—+ | | | | | | fieldHeight | | unrotatedFieldWidth | | | | +--------------—* m_dcScreenMax fieldWidth unrotatedFieldHeight
bool OdGsViewImpl::updateViewportProperties | ( | OdUInt32 | incFlags | ) |
Updates viewport properties specified by the passed flags.
incFlags | [in] Flags that specify which properties to update. |
|
virtual |
Returns the WCS camera up vector for this Viewport object.
Implements OdGsView.
|
protectedvirtual |
Returns the minimum and maximum depth of this view object.
pMinDeptSupported | [out] Receives the minimum depth supported. |
pMaxDeptSupported | [out] Receives the maximum depth supported. |
|
pure virtual |
Returns the eye coordinate system extents of this view object.
extents | [out] Receives the extents. |
Implemented in OdGsBaseVectorizeView.
|
virtual |
Returns the matrix that transforms world space to view space for this Viewport object.
Implements OdGsView.
|
virtual |
Returns the current 3d clipping for this Viewport object.
ppClipInfo | [out] Optional 3d clipping boundary extended data. |
Reimplemented from OdGsView.
|
inline |
Returns the current 3d clipping for this Viewport object as single object.
Definition at line 2398 of file GsViewImpl.h.
|
virtual |
Returns a polygonal clip region for this Viewport object.
counts | [out] Array of the number of vertices in each polygonal contour. |
vertices | [out] Array of device coordinate (pixel) vertices defining the polygonal contours. |
Implements OdGsView.
|
virtual |
Returns a polygonal clip region for this Viewport object.
counts | [out] Array of the number of vertices in each polygonal contour. |
vertices | [out] Array of device coordinate (pixel) vertices defining the polygonal contours. |
Implements OdGsView.
void OdGsViewImpl::viewportDcCorners | ( | OdGePoint2d & | lower_left, |
OdGePoint2d & | upper_right | ||
) | const |
Retrieves viewport points in normalized device coordinates.
lowerLeft | [out] Receives lower-left corner. |
upperRight | [out] Receives upper-right corner. |
|
inline |
Returns the OdGi Viewport ID for this vectorizer.
Definition at line 1119 of file GsViewImpl.h.
short OdGsViewImpl::viewportRotation | ( | ) | const |
Checks how viewport is rotated.
|
virtual |
Returns current visual style object ID for this view.
Implements OdGsView.
|
virtual |
Returns current visual style for this view.
visualStyle | [out] OdGiVisualStyle structure to fill by current visual style data. |
Implements OdGsView.
double OdGsViewImpl::windowAspect | ( | ) | const |
Returns the width to height ratio for this view object.
|
virtual |
Returns a matrix that transforms coordinates from world space to screen space for this Viewport object.
Implements OdGsView.
OdGeMatrix3d OdGsViewImpl::worldToDeviceMatrix | ( | OdGsOverlayId | nOverlay | ) | const |
Returns a matrix that transforms coordinates from world space to screen space for this Viewport object.
nOverlay | [in] Graphics system overlay index. |
|
inline |
Returns the transformation matrix from WCS to EyeSpace for this Viewport object.
Definition at line 2338 of file GsViewImpl.h.
|
inline |
Retrieves x vector that defines camera x-axis.
Definition at line 1454 of file GsViewImpl.h.
|
virtual |
Scales the focal length of the camera by the specified amount.
zoomFactor | [in] Zoom factor. |
Implements OdGsView.
|
virtual |
Scales the camera to completely include specified WCS box inside view frustum.
minPt | [in] minimal WCS box point. |
maxPt | [in] maximal WCS box point. |
Implements OdGsView.
|
virtual |
Scales the camera to completely include specified screen area.
lowerLeft | [in] Lower-left corner in nomalized device coordinates [0.0 .. 1.0]. |
upperRight | [in] Upper-right corner in nomalized device coordinates [0.0 .. 1.0]. |
Implements OdGsView.
|
friend |
Definition at line 2204 of file GsViewImpl.h.
|
friend |
Definition at line 2205 of file GsViewImpl.h.
|
friend |
Definition at line 2207 of file GsViewImpl.h.
|
friend |
Definition at line 2208 of file GsViewImpl.h.
|
friend |
Definition at line 2206 of file GsViewImpl.h.
|
protected |
Definition at line 2148 of file GsViewImpl.h.
|
protected |
Definition at line 2106 of file GsViewImpl.h.
|
protected |
Definition at line 2201 of file GsViewImpl.h.
|
protected |
Definition at line 2103 of file GsViewImpl.h.
|
protected |
Definition at line 2104 of file GsViewImpl.h.
|
protected |
Definition at line 2124 of file GsViewImpl.h.
|
protected |
Definition at line 2136 of file GsViewImpl.h.
|
protected |
Definition at line 2111 of file GsViewImpl.h.
|
protected |
Definition at line 2110 of file GsViewImpl.h.
|
protected |
Definition at line 2109 of file GsViewImpl.h.
|
protected |
Definition at line 2112 of file GsViewImpl.h.
|
protected |
Definition at line 2147 of file GsViewImpl.h.
|
protected |
Definition at line 2138 of file GsViewImpl.h.
|
protected |
Definition at line 2202 of file GsViewImpl.h.
|
protected |
Definition at line 2197 of file GsViewImpl.h.
|
mutableprotected |
Definition at line 2125 of file GsViewImpl.h.
|
protected |
Definition at line 2117 of file GsViewImpl.h.
|
protected |
Definition at line 2122 of file GsViewImpl.h.
|
protected |
Definition at line 2115 of file GsViewImpl.h.
|
protected |
Definition at line 2114 of file GsViewImpl.h.
|
protected |
Definition at line 2105 of file GsViewImpl.h.
|
protected |
Definition at line 2199 of file GsViewImpl.h.
|
protected |
Definition at line 2100 of file GsViewImpl.h.
|
protected |
Definition at line 2188 of file GsViewImpl.h.
|
mutableprotected |
Definition at line 2102 of file GsViewImpl.h.
|
protected |
Definition at line 2097 of file GsViewImpl.h.
|
protected |
Definition at line 2116 of file GsViewImpl.h.
|
protected |
Definition at line 2131 of file GsViewImpl.h.
|
protected |
Definition at line 2130 of file GsViewImpl.h.
|
protected |
Definition at line 2132 of file GsViewImpl.h.
|
protected |
Definition at line 2189 of file GsViewImpl.h.
|
protected |
Definition at line 2133 of file GsViewImpl.h.
|
mutableprotected |
Definition at line 2141 of file GsViewImpl.h.
|
protected |
Definition at line 2140 of file GsViewImpl.h.
|
protected |
Definition at line 2128 of file GsViewImpl.h.
|
protected |
Definition at line 2129 of file GsViewImpl.h.
|
mutableprotected |
Definition at line 2184 of file GsViewImpl.h.
|
protected |
Definition at line 2135 of file GsViewImpl.h.
|
protected |
Definition at line 2144 of file GsViewImpl.h.
|
protected |
Definition at line 2134 of file GsViewImpl.h.
|
protected |
Definition at line 2186 of file GsViewImpl.h.
|
protected |
Definition at line 2192 of file GsViewImpl.h.
|
protected |
Definition at line 2099 of file GsViewImpl.h.
|
protected |
Definition at line 2119 of file GsViewImpl.h.
|
protected |
Definition at line 2143 of file GsViewImpl.h.
|
protected |
Definition at line 2146 of file GsViewImpl.h.
|
protected |
Definition at line 2145 of file GsViewImpl.h.
|
protected |
Definition at line 2190 of file GsViewImpl.h.
|
protected |
Definition at line 2195 of file GsViewImpl.h.
|
protected |
Definition at line 2107 of file GsViewImpl.h.
|
protected |
Definition at line 2108 of file GsViewImpl.h.
|
protected |
Definition at line 2120 of file GsViewImpl.h.
|
protected |
Definition at line 2121 of file GsViewImpl.h.
|
protected |
Definition at line 2187 of file GsViewImpl.h.
|
mutableprotected |
Definition at line 2126 of file GsViewImpl.h.
|
protected |
Definition at line 2123 of file GsViewImpl.h.