1 #ifndef COIN_SBDPVIEWVOLUME_H
2 #define COIN_SBDPVIEWVOLUME_H
38 #include <Inventor/SbBasic.h>
39 #include <Inventor/SbVec3d.h>
60 void projectPointToLine(
const SbVec2d& pt,
63 SbPlane getPlane(
const double distFromEye)
const;
64 SbVec3d getSightPoint(
const double distFromEye)
const;
65 SbVec3d getPlanePoint(
const double distFromEye,
66 const SbVec2d& normPoint)
const;
67 SbDPRotation getAlignRotation(SbBool rightAngleOnly = FALSE)
const;
68 double getWorldToScreenScale(
const SbVec3d& worldCenter,
69 double normRadius)
const;
72 double right,
double top)
const;
74 void ortho(
double left,
double right,
75 double bottom,
double top,
76 double nearval,
double farval);
77 void perspective(
double fovy,
double aspect,
78 double nearval,
double farval);
79 void frustum(
double left,
double right,
80 double bottom,
double top,
81 double nearval,
double farval);
83 void translateCamera(
const SbVec3d& v);
86 void scale(
double factor);
87 void scaleWidth(
double ratio);
88 void scaleHeight(
double ratio);
89 ProjectionType getProjectionType(
void)
const;
90 const SbVec3d& getProjectionPoint(
void)
const;
91 const SbVec3d& getProjectionDirection(
void)
const;
92 double getNearDist(
void)
const;
93 double getWidth(
void)
const;
94 double getHeight(
void)
const;
95 double getDepth(
void)
const;
97 void print(FILE * fp)
const;
98 void getViewVolumePlanes(
SbPlane planes[6])
const;
115 void getPlaneRectangle(
const double depth,
SbVec3d & lowerleft,
120 #endif // !COIN_SBDPVIEWVOLUME_H