CFx SDK Documentation  2020SP3
PdfPublishCamera.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
26 //
27 // PdfPublishCamera.h
28 //
30 
31 #ifndef _PDF_PUBLISH_CAMERA_INCLUDED_
32 #define _PDF_PUBLISH_CAMERA_INCLUDED_
33 
34 #include "PdfPublishBaseObject.h"
35 
36 //DOM-IGNORE-BEGIN
37 class OdGePoint3d;
38 class OdGeVector3d;
39 //DOM-IGNORE-END
40 
44 namespace OdPdfPublish{
45 
50 {
51 public:
52  //DOM-IGNORE-BEGIN
55  //DOM-IGNORE-END
56 
61 
65  virtual ~OdCamera();
66 
76  void dolly(double x_dir, double up, double forward);
77 
89  void orbit(double theta, double phi);
90 
98  void pan(double theta, double phi);
99 
107  void roll(double theta);
108 
119  void zoom(double zoom);
120 
127  void setField(double width, double height);
128 
139  void setNearLimit(double const limit);
140 
149  void setPosition(const OdGePoint3d& position);
150 
162  void setProjection(Camera::Projection type, double oblique_y_skew = 0., double oblique_x_skew = 0.);
163 
172  void setTarget(const OdGePoint3d& target);
173 
182  void setUpVector(const OdGeVector3d& vector);
183 
194  void getField(double& width, double& height) const;
195 
207  void getNearLimit(double& limit) const;
208 
218  void getPosition(OdGePoint3d& position) const;
219 
232  void getProjection(Camera::Projection& type, double& oblique_y_skew, double& oblique_x_skew) const;
233 
234 
244  void getTarget(OdGePoint3d& target) const;
245 
255  void getUpVector(OdGeVector3d& vector) const;
256 
257 };
258 
263 
264 }
265 #endif // _PDF_PUBLISH_CAMERA_INCLUDED_
OdPdfPublish::OdCamera::~OdCamera
virtual ~OdCamera()
OdPdfPublish::OdCamera::OdCamera
OdCamera()
OdGeVector3d
Definition: GeVector3d.h:54
OdPdfPublish::OdCamera::getPosition
void getPosition(OdGePoint3d &position) const
OdPdfPublish::OdCamera::zoom
void zoom(double zoom)
OdPdfPublish::OdCamera::ODRX_HEAP_OPERATORS
ODRX_HEAP_OPERATORS()
OdPdfPublish::OdCamera::setTarget
void setTarget(const OdGePoint3d &target)
type
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
OdPdfPublish::OdCamera::getTarget
void getTarget(OdGePoint3d &target) const
OdPdfPublish::Camera::Projection
Projection
Definition: PdfPublishCommon.h:142
OdPdfPublish::OdCamera::roll
void roll(double theta)
OdPdfPublish::OdCamera
Definition: PdfPublishCamera.h:50
OdPdfPublish::OdCamera::setProjection
void setProjection(Camera::Projection type, double oblique_y_skew=0., double oblique_x_skew=0.)
OdPdfPublish::SMARTPTR
SMARTPTR(OdFile)
PDFPUBLISH_TOOLKIT
#define PDFPUBLISH_TOOLKIT
Definition: PdfPublishDef.h:40
OdPdfPublish::OdCamera::setPosition
void setPosition(const OdGePoint3d &position)
OdGePoint3d
Definition: GePoint3d.h:55
OdPdfPublish::OdCamera::orbit
void orbit(double theta, double phi)
OdPdfPublish
Definition: PdfPublish.h:42
OdPdfPublish::OdCamera::getProjection
void getProjection(Camera::Projection &type, double &oblique_y_skew, double &oblique_x_skew) const
height
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110
width
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
OdPdfPublish::OdCamera::pan
void pan(double theta, double phi)
OdPdfPublish::OdCamera::setNearLimit
void setNearLimit(double const limit)
OdPdfPublish::OdCamera::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdCamera)
OdPdfPublish::OdCamera::setUpVector
void setUpVector(const OdGeVector3d &vector)
PdfPublishBaseObject.h
OdPdfPublish::OdCamera::dolly
void dolly(double x_dir, double up, double forward)
OdPdfPublish::OdCamera::getField
void getField(double &width, double &height) const
OdPdfPublish::OdCamera::getUpVector
void getUpVector(OdGeVector3d &vector) const
OdPdfPublish::OdCamera::getNearLimit
void getNearLimit(double &limit) const
OdPdfPublish::OdCamera::setField
void setField(double width, double height)
OdPdfPublish::OdObject
Definition: PdfPublishBaseObject.h:71