CFx SDK Documentation
2022 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 | ClearColor { kTransparent , kDeviceBackground , kPaletteBackground } |
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 | |
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 |
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 57 of file GsViewImpl.h.
Enumerator | |
---|---|
kProjectionIncludeDept | |
kProjectionIncludeClip | |
kProjectionIncludePerspective | |
kProjectionIncludeRotation | |
kProjectionIncludeAll | |
kProjectionIncludeAllNoDept |
Definition at line 348 of file GsViewImpl.h.
OdGsViewImpl::OdGsViewImpl | ( | ) |
OdGsViewImpl::~OdGsViewImpl | ( | ) |
|
inline |
Returns actual field height variable (without inclusion if aspect ratio).
Definition at line 993 of file GsViewImpl.h.
|
inline |
Returns actual field width variable (without inclusion if aspect ratio).
Definition at line 988 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.
OdDbStub* OdGsViewImpl::annotationScaleId | ( | ) | const |
|
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 249 of file GsViewImpl.h.
|
inline |
Definition at line 250 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 409 of file GsViewImpl.h.
double OdGsViewImpl::calcDeviation | ( | const OdGiDeviationType | type, |
const OdGePoint3d & | pt | ||
) | const |
ClearColor OdGsViewImpl::clearColor | ( | ) | const |
|
virtual |
Thaws all Layer objects in this Viewport object.
Implements OdGsView.
|
pure virtual |
|
virtual |
Returns the ClientViewInfo for this Viewport object.
clientViewInfo | [out] Receives the ClientViewInfo. |
Reimplemented from OdGsView.
|
virtual |
Clones this view object.
cloneViewParameters | [in] If and only if true, view parameters will be cloned. |
cloneGeometry | [in] If and only if true, geometry will be cloned. |
Implements OdGsView.
|
inline |
Definition at line 846 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 |
Definition at line 476 of file GsViewImpl.h.
|
inline |
Definition at line 475 of file GsViewImpl.h.
|
inline |
Definition at line 474 of file GsViewImpl.h.
|
inline |
Definition at line 477 of file GsViewImpl.h.
|
inline |
Definition at line 887 of file GsViewImpl.h.
|
inline |
Definition at line 892 of file GsViewImpl.h.
|
virtual |
Returns the GsDevice object associated with this Viewport object.
Implements OdGsView.
bool OdGsViewImpl::doInversePerspectivePt | ( | OdGePoint3d & | point | ) | const |
|
virtual |
Translates the camera position and target by the specified Camera Coordinate dolly amount.
dollyVector | [in] Camera Coordinate dolly vector. |
xDolly | [in] Camera Coordinate X dolly amount. |
yDolly | [in] Camera Coordinate Y dolly amount. |
zDolly | [in] Camera Coordinate Z dolly amount. |
The Y-axis is along up vector. The Z-axis is along the vector from camera postiton to the target. The X-axis is the cross product Y-axis × Z-axis
Implements OdGsView.
|
virtual |
Implements OdGsView.
bool OdGsViewImpl::doPerspectivePt | ( | OdGePoint3d & | point | ) | const |
|
protected |
Returns the OdGiDrawable associated with the specified DrawableHolder object.
drawableHolder | [in] Drawable holder. |
OdIntPtr OdGsViewImpl::drawablesFilterFunction | ( | ) | const |
|
virtual |
Enables default lighting for this view.
bEnable | [in] New default lighting state. |
lightType | [in] New default lighting type. |
Implements OdGsView.
|
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 |
Returns true if an only if any 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.
OdGeMatrix3d OdGsViewImpl::eyeToScreenMatrix | ( | OdGsOverlayId | nOverlay = kGsMainOverlay | ) | const |
|
inline |
Definition at line 913 of file GsViewImpl.h.
|
inline |
Definition at line 395 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.
|
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 the frozen layers for this view object.
Definition at line 299 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 310 of file GsViewImpl.h.
|
virtual |
|
virtual |
|
inline |
Definition at line 841 of file GsViewImpl.h.
double OdGsViewImpl::getLinetypeGenerationCriteria | ( | ) | const |
double OdGsViewImpl::getLinetypeScaleMultiplier | ( | ) | const |
|
inline |
Definition at line 472 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.
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.
Implements OdGsView.
|
inline |
Definition at line 388 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]. |
A magnitude of 1.0 is the default value. A magnitude of 0.0 produces no stereo effect. A magnitude of 2.0 produces a double stereo effect.
parallax adjusts the zero parallax plane.
A parallax of 1.0 is the default value. An object centered at the target will be half-in and half-out of the screen. A parallax of 0.0 moves the object into the screen. A parallax of 2.0 move the object out of the screen.
Implements OdGsView.
|
inline |
Definition at line 397 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 |
Implements OdGsView.
|
virtual |
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 |
Definition at line 244 of file GsViewImpl.h.
OdGsPropertiesPtr OdGsViewImpl::getViewportPropertiesForType | ( | OdGsProperties::PropertiesType | type | ) | const |
OdGsPropertiesPtr OdGsViewImpl::getViewportPropertiesRoot | ( | ) | const |
|
inline |
Definition at line 471 of file GsViewImpl.h.
|
inline |
Returns true if and only if 3d clipping set for this Viewport object.
Definition at line 983 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 | ( | ) |
|
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 for refresh the specified region of this Viewport object.
screenRect | [in] Screen rectangle in device coordinates (pixels). |
Implements OdGsView.
|
virtual |
|
virtual |
Implements OdGsView.
|
inline |
Definition at line 908 of file GsViewImpl.h.
|
virtual |
Marks for regeneration all subViewportDraw() geometry for this Viewport object.
Implements OdGsView.
void OdGsViewImpl::invalidateRegion | ( | const OdGiPathNode & | path | ) |
OdGsDCRectArray OdGsViewImpl::invalidRects | ( | OdGsOverlayId | nOverlay = kGsMainOverlay | ) | const |
|
inline |
Definition at line 963 of file GsViewImpl.h.
|
virtual |
Returns true if and only if back clipping is enabled for this Viewport object.
Implements OdGsView.
|
inlineprotected |
Definition at line 862 of file GsViewImpl.h.
|
inline |
Definition at line 968 of file GsViewImpl.h.
|
virtual |
Returns true if and only if culling volume associated with current view.
|
inline |
Definition at line 831 of file GsViewImpl.h.
|
inline |
Definition at line 826 of file GsViewImpl.h.
|
virtual |
Returns true if and only if front clipping is enabled for this Viewport object.
Implements OdGsView.
|
inline |
Definition at line 836 of file GsViewImpl.h.
|
virtual |
Checks is this Viewport object is in interactive state.
Implements OdGsView.
|
inlineprotected |
Definition at line 872 of file GsViewImpl.h.
bool OdGsViewImpl::isLayerVisible | ( | OdDbStub * | layerId | ) | const |
|
virtual |
|
virtual |
|
inline |
Definition at line 897 of file GsViewImpl.h.
|
virtual |
Returns true if and only if the projection type for this Viewport object is kPerspective.
Implements OdGsView.
|
virtual |
|
inline |
Definition at line 953 of file GsViewImpl.h.
|
inline |
Definition at line 902 of file GsViewImpl.h.
|
inline |
Definition at line 943 of file GsViewImpl.h.
|
virtual |
Returns true if and only if stereo viewing is enabled for this Viewport object.
Implements OdGsView.
|
virtual |
|
virtual |
|
inline |
Definition at line 857 of file GsViewImpl.h.
|
virtual |
Returns true if and only if this Viewport object is showing the correct image.
Implements OdGsView.
bool OdGsViewImpl::isValidViewportId | ( | const OdUInt32 | vpId | ) | const |
|
virtual |
Returns true if and only if the border is visible for this Viewport object.
Implements OdGsView.
bool OdGsViewImpl::isViewportOnScreen | ( | ) | const |
Returns true if and only if this view object is not off-screen.
|
virtual |
|
virtual |
Returns true if and only if this Viewport object is not hidden.
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 |
Returns current alternate linetype scale multiplier value.
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 |
|
virtual |
|
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 |
Returns the matrix that transforms coordinates from model space to screen space for this Viewport object.
Implements OdGsView.
Reimplemented in OdGsBaseVectorizeViewJoin< BaseVectorizerObject >, OdGsBaseVectorizeViewJoin< OdGsBaseVectorizer >, and OdGsBaseVectorizeViewJoin< OdGsBaseMaterialViewPC >.
OdGeMatrix3d OdGsViewImpl::objectToDeviceMatrix | ( | OdGsOverlayId | nOverlay | ) | const |
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. |
The camera is first rotated about an axis parallel to the X-axis and passing through the target.
The camera is next rotated about an axis parallel to the Y-axis and passing through the target
The Y-axis is along up vector. The Z-axis is along the vector from camera postiton to the target. The X-axis is the cross product Y-axis × Z-axis
All angles are expressed in radians.
Implements OdGsView.
|
virtual |
Rotates the target about the camera the specified amounts.
xPan | [in] X-axis pan. |
yPan | [in] Y-axis pan. |
The target is first rotated about an axis parallel to the X-axis and passing through the camera.
The target is next rotated about an axis parallel to the Y-axis and passing through the camera.
The Y-axis is along up vector. The Z-axis is along the vector from camera postiton to the target. The X-axis is the cross product Y-axis × Z-axis All angles are expressed in radians.
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 does 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.
OdGeMatrix3d OdGsViewImpl::projectionMatrix | ( | OdUInt32 | nIncludes, |
OdGsOverlayId | nOverlay = kGsMainOverlay |
||
) | const |
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Rotates the camera by the specified amount about the eye vector.
rollAngle | [in] Camera CCW roll angle. |
The Y-axis is along up-vector. The Z-axis (eye vector) is along the vector from camera postiton to the target. The X-axis is the cross product Y-axis × Z-axis.
All angles are expressed in radians.
Implements OdGsView.
const OdGeMatrix3d& OdGsViewImpl::rotationMatrix | ( | ) | const |
|
inlinestatic |
Definition at line 938 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 933 of file GsViewImpl.h.
|
virtual |
|
virtual |
|
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.
void OdGsViewImpl::screenRect | ( | OdGePoint2d & | lowerLeft, |
OdGePoint2d & | upperRight | ||
) | const |
Introduces a DCS rectangle into this vectorization context.
lowerLeft | [in] Lower-left corner. |
upperRight | [in] Upper-right corner. |
void OdGsViewImpl::screenRect | ( | OdGsDCPoint & | lowerLeft, |
OdGsDCPoint & | upperRight | ||
) | const |
Introduces a DCS rectangle into this vectorization context.
lowerLeft | [in] Lower-left corner. |
upperRight | [in] Upper-right corner. |
void OdGsViewImpl::screenRectNorm | ( | OdGsDCRect & | normalizedRect | ) | const |
|
pure virtual |
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. |
Implements OdGsView.
|
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.
backClip | [in] Back clip distance. |
Implements OdGsView.
|
virtual |
Sets background object for this view.
backgroundId | [in] New background object ID. |
Implements OdGsView.
|
inlineprotected |
Definition at line 867 of file GsViewImpl.h.
|
virtual |
|
inline |
Definition at line 973 of file GsViewImpl.h.
|
inline |
Definition at line 851 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] Enable back clipping. |
Implements OdGsView.
|
virtual |
Controls the front clipping of this Viewport object.
enable | [in] Enable front clipping. |
Implements OdGsView.
|
virtual |
Sets the front clip distance from the target of this Viewport object.
frontClip | [in] Front clip distance. |
Implements OdGsView.
|
inlineprotected |
Definition at line 877 of file GsViewImpl.h.
void OdGsViewImpl::setInversion | ( | bool | invertedX, |
bool | invertedY | ||
) |
|
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 | ) |
|
inlineprotected |
Definition at line 882 of file GsViewImpl.h.
|
virtual |
|
inline |
Definition at line 958 of file GsViewImpl.h.
|
inline |
Definition at line 948 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]. |
A magnitude of 1.0 is the default value. A magnitude of 0.0 produces no stereo effect. A magnitude of 2.0 produces a double stereo effect.
parallax adjusts the zero parallax plane.
A parallax of 1.0 is the default value. An object centered at the target will be half-in and half-out of the screen. A parallax of 0.0 moves the object into the screen. A parallax of 2.0 move the object out of the screen.
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. |
projectionType must be one of the following:
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]. |
screenRect | [in] Screen rectangle in device coordinates (pixels). |
Implements OdGsView.
|
virtual |
Implements OdGsView.
|
virtual |
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 |
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< OdGsBaseVectorizer >, and OdGsBaseVectorizeViewJoin< OdGsBaseMaterialViewPC >.
|
virtual |
Sets visual style object for this view.
visualStyleId | [in] New visual style object ID. |
Implements OdGsView.
|
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.
double OdGsViewImpl::unrotatedFieldHeight | ( | ) | const |
When viewport is not rotated (or rotated 180)
+--------------—* m_dcScreenMax | | | | | | fieldHeight | | unrotatedFieldHeight | | |m_dcScreenMin | --------------—+ fieldWidth unrotatedFieldWidth
When viewport is rotated to 90 or 270:
m_dcScreenMin --------------—+ | | | | | | fieldHeight | | unrotatedFieldWidth | | | | +--------------—* m_dcScreenMax fieldWidth unrotatedFieldHeight
Returns fieldWidth and fieldHeight
double OdGsViewImpl::unrotatedFieldWidth | ( | ) | const |
bool OdGsViewImpl::updateViewportProperties | ( | OdUInt32 | incFlags | ) |
|
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 978 of file GsViewImpl.h.
|
virtual |
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 |
|
inline |
Definition at line 240 of file GsViewImpl.h.
short OdGsViewImpl::viewportRotation | ( | ) | const |
|
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 |
|
inline |
Definition at line 923 of file GsViewImpl.h.
|
inline |
Definition at line 396 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 819 of file GsViewImpl.h.
|
friend |
Definition at line 820 of file GsViewImpl.h.
|
friend |
Definition at line 822 of file GsViewImpl.h.
|
friend |
Definition at line 823 of file GsViewImpl.h.
|
friend |
Definition at line 821 of file GsViewImpl.h.
|
protected |
Definition at line 737 of file GsViewImpl.h.
|
protected |
Definition at line 816 of file GsViewImpl.h.
|
protected |
Definition at line 734 of file GsViewImpl.h.
|
protected |
Definition at line 735 of file GsViewImpl.h.
|
protected |
Definition at line 742 of file GsViewImpl.h.
|
protected |
Definition at line 741 of file GsViewImpl.h.
|
protected |
Definition at line 740 of file GsViewImpl.h.
|
protected |
Definition at line 743 of file GsViewImpl.h.
|
protected |
Definition at line 776 of file GsViewImpl.h.
|
protected |
Definition at line 767 of file GsViewImpl.h.
|
protected |
Definition at line 817 of file GsViewImpl.h.
|
protected |
Definition at line 812 of file GsViewImpl.h.
|
mutableprotected |
Definition at line 755 of file GsViewImpl.h.
|
protected |
Definition at line 748 of file GsViewImpl.h.
|
protected |
Definition at line 753 of file GsViewImpl.h.
|
protected |
Definition at line 746 of file GsViewImpl.h.
|
protected |
Definition at line 745 of file GsViewImpl.h.
|
protected |
Definition at line 736 of file GsViewImpl.h.
|
protected |
Definition at line 814 of file GsViewImpl.h.
|
protected |
Definition at line 731 of file GsViewImpl.h.
|
protected |
Definition at line 801 of file GsViewImpl.h.
|
mutableprotected |
Definition at line 733 of file GsViewImpl.h.
|
protected |
Definition at line 730 of file GsViewImpl.h.
|
protected |
Definition at line 747 of file GsViewImpl.h.
|
protected |
Definition at line 761 of file GsViewImpl.h.
|
protected |
Definition at line 760 of file GsViewImpl.h.
|
protected |
Definition at line 762 of file GsViewImpl.h.
|
protected |
Definition at line 763 of file GsViewImpl.h.
|
mutableprotected |
Definition at line 770 of file GsViewImpl.h.
|
protected |
Definition at line 769 of file GsViewImpl.h.
|
protected |
Definition at line 758 of file GsViewImpl.h.
|
protected |
Definition at line 759 of file GsViewImpl.h.
|
protected |
Definition at line 797 of file GsViewImpl.h.
|
protected |
Definition at line 765 of file GsViewImpl.h.
|
protected |
Definition at line 773 of file GsViewImpl.h.
|
protected |
Definition at line 764 of file GsViewImpl.h.
|
protected |
Definition at line 799 of file GsViewImpl.h.
|
protected |
Definition at line 807 of file GsViewImpl.h.
|
protected |
Definition at line 729 of file GsViewImpl.h.
|
protected |
Definition at line 750 of file GsViewImpl.h.
|
protected |
Definition at line 772 of file GsViewImpl.h.
|
protected |
Definition at line 775 of file GsViewImpl.h.
|
protected |
Definition at line 774 of file GsViewImpl.h.
|
protected |
Definition at line 805 of file GsViewImpl.h.
|
protected |
Definition at line 810 of file GsViewImpl.h.
|
protected |
Definition at line 738 of file GsViewImpl.h.
|
protected |
Definition at line 739 of file GsViewImpl.h.
|
protected |
Definition at line 751 of file GsViewImpl.h.
|
protected |
Definition at line 752 of file GsViewImpl.h.
|
protected |
Definition at line 800 of file GsViewImpl.h.
|
mutableprotected |
Definition at line 756 of file GsViewImpl.h.
|
protected |
Definition at line 754 of file GsViewImpl.h.