65 virtual void pan(
int nX,
int nY);
67 virtual void zoom(
float fDelta);
69 virtual void zoom(
int nX,
int nY,
float fDelta);
84 virtual void rotate(
double xAngle,
double yAngle,
double zAngle,
bool bLocalCS =
true);
bool OdZero(double x, double tol=1.e-10)
#define SETBIT(flags, bit, value)
#define GETBIT(flags, bit)
static GE_STATIC_EXPORT const OdGeExtents3d kInvalid
bool isEqualTo(const OdGeMatrix3d &matrix, const OdGeTol &tol=OdGeContext::gTol) const
static GE_STATIC_EXPORT const OdGeMatrix3d kIdentity
bool cameraCumulative() const
OdTrVisCamera * parentCamera() const
std::set< OdTrVisCamera * > m_siblingCameras
double projectionFocalLength() const
void setViewBasisY(const OdGeVector3d &yBasis)
void setOverlayOwnerCamera(OdTrVisCamera *)
const OdGeMatrix3d & projectionMatrix() const
void setChildCamera(OdTrVisCamera *)
double projectionFocalLengthReciprocal() const
void applyMetafileXform(bool bSetModified=false) const
void setOverlayCamera(OdTrVisCamera *)
std::set< OdTrVisCamera * > m_childCameras
OdTrVisCamera * m_pOverlayOwnerCamera
void setViewBasisX(const OdGeVector3d &xBasis)
const OdGeMatrix3d & metafileMatrix() const
const OdTrVisExtentsDef * m_pExtentsDef
virtual void copyViewParams(const OdTrVisCamera *)
const OdGePoint3d & viewTarget() const
void setPerspectiveProjection(bool p)
const OdGeMatrix3d & outputMatrix() const
void setCameraCumulative(bool bSet)
void preComputeViewportDefMatrices() const
const OdGeMatrix3d & viewingMatrix() const
void projectedExtents(OdGePoint2d &extMin, OdGePoint2d &extMax, const OdGeExtents3d &extents) const
void removeOverlayCamera(OdTrVisCamera *)
void setMetafileMatrix(const OdGeMatrix3d &m)
const OdGeVector3d & viewBasisZ() const
void setContext(const OdTrVisSurfaceDef *pSurface, const OdTrVisViewportShadingDef *pViewportShading, const OdTrVisViewportClipDef *pViewportClip, const OdTrVisExtentsDef *pExtents)
void setParentCamera(OdTrVisCamera *)
bool viewportRect(OdGsDCRect &vpRect, bool bClipped=false) const
const OdTrVisViewClipped & frontClip() const
void setSiblingCamera(OdTrVisCamera *)
bool isPerspectiveProjection() const
const OdGeExtents3d & extents() const
double fieldWidth() const
virtual void zoomExtents(float coef=1.03f)
OdTrVisCamera * m_pParentCamera
const OdTrVisViewportClipDef * m_pViewportClipDef
virtual void translate(const OdGeVector3d &offset)
virtual void zoom(int nX, int nY, float fDelta)
double fieldHeight() const
static void computeSceneDepth(const OdGeMatrix3d &ecsToWcs, const OdGeExtents3d &sceneExtents, double &dNear, double &dFar)
void setModified(bool modified=true) const
void setViewPosition(const OdGePoint3d &pt)
static double computeFocalLength(double lensLength, double fieldWidth, double fieldHeight)
void setBackClip(const OdTrVisViewClipped &cl)
virtual void orbit(int nX, int nY, OrbitType type=kOrbitPerp, float angle=0.0f)
const OdGeMatrix3d & UnXForm() const
const OdGePoint3d & viewPosition() const
void setFieldWidth(double w)
void removeChildCamera(OdTrVisCamera *)
OdTrVisCamera * overlayOwnerCamera() const
const OdGeVector3d & viewBasisX() const
const OdGeVector3d & viewBasisY() const
void setFrontClip(const OdTrVisViewClipped &cl)
virtual void pan(int nX, int nY)
void setFieldHeight(double h)
OdTrVisViewParamsDef m_viewParams
double lensLength() const
OdTrVisCamera * m_pSiblingOwnerCamera
OdGeMatrix3d computeProjectionMatrix(const OdGsDCRectDouble &dcRect, const OdTrVisViewportShadingDef *sets, const OdGeExtents3d &sceneExtents) const
void removeSiblingCamera(OdTrVisCamera *)
long screenHeight() const
double computeFieldHeight(double aspectRatio) const
virtual void zoom(float fDelta)
const OdGeMatrix3d & correctionMatrix() const
bool hasMetafileMatrix() const
virtual void update() const
OdTrVisCamera * siblingOwnerCamera() const
const OdGeMatrix3d & screenMatrix() const
virtual void rotate(double xAngle, double yAngle, double zAngle, bool bLocalCS=true)
double projectionScreenDepth() const
static double computeAspectRatio(const OdGsDCRectDouble &dcRect)
void setSiblingOwnerCamera(OdTrVisCamera *)
const OdTrVisViewClipped & backClip() const
OdTrVisCamera * sibling()
const OdTrVisViewParamsDef & viewParams(bool bUpdated=true) const
double computeFieldWidth(double aspectRatio) const
const OdTrVisSurfaceDef * m_pSurfaceDef
const OdTrVisViewportShadingDef * m_pViewportShadingDef
std::set< OdTrVisCamera * > m_overlayCameras
bool projectionPerspective() const
void setLensLength(double l)
void setViewParams(const OdTrVisViewParamsDef &viewParams, bool bSetModified=false)
static OdGeMatrix3d computeCorrectionMatrix(const OdGsDCRectDouble &dcRect, double screenWidth, double screenHeight)
void setViewBasisZ(const OdGeVector3d &zBasis)
void setViewTarget(const OdGePoint3d &pt)
const OdGeVector3d & yAxis() const
const OdGeVector3d & xAxis() const
const OdGeVector3d & zAxis() const
OdTrVisOrthoBasis & setYAxis(const OdGeVector3d &axis)
OdTrVisOrthoBasis & setZAxis(const OdGeVector3d &axis)
OdTrVisOrthoBasis & setXAxis(const OdGeVector3d &axis)
const OdGePoint3d & origin() const
OdTrVisViewBasis & setOrigin(const OdGePoint3d &origin)
GLfloat GLfloat GLfloat GLfloat w
GLuint GLsizei GLsizei GLint GLenum * type
const OdGeExtents3d & preferRealExtents() const
OdTrVisViewClipped m_frontClip
OdGeMatrix3d m_outputMatrix
OdTrVisViewBasis m_viewBasis
OdGeMatrix3d m_viewingMatrix
OdTrVisViewClipped m_backClip
OdGeMatrix3d m_correctionMatrix
OdGeMatrix3d m_projectionMatrix
OdGeMatrix3d m_screenMatrix
bool m_bPerspectiveProjection
OdGeMatrix3d m_metafileMatrix