1 #ifndef COIN_SBVIEWVOLUME_H
2 #define COIN_SBVIEWVOLUME_H
29 #include <Inventor/SbBasic.h>
30 #include <Inventor/SbVec3f.h>
31 #include <Inventor/SbDPViewVolume.h>
50 SbMatrix getCameraSpaceMatrix(
void)
const;
51 void projectPointToLine(
const SbVec2f& pt,
SbLine& line)
const;
52 void projectPointToLine(
const SbVec2f& pt,
55 SbPlane getPlane(
const float distFromEye)
const;
56 SbVec3f getSightPoint(
const float distFromEye)
const;
57 SbVec3f getPlanePoint(
const float distFromEye,
58 const SbVec2f& normPoint)
const;
59 SbRotation getAlignRotation(SbBool rightAngleOnly = FALSE)
const;
60 float getWorldToScreenScale(
const SbVec3f& worldCenter,
61 float normRadius)
const;
64 float right,
float top)
const;
66 void ortho(
float left,
float right,
67 float bottom,
float top,
68 float nearval,
float farval);
69 void perspective(
float fovy,
float aspect,
70 float nearval,
float farval);
71 void frustum(
float left,
float right,
72 float bottom,
float top,
73 float nearval,
float farval);
75 void translateCamera(
const SbVec3f& v);
78 void scale(
float factor);
79 void scaleWidth(
float ratio);
80 void scaleHeight(
float ratio);
81 ProjectionType getProjectionType(
void)
const;
82 const SbVec3f& getProjectionPoint(
void)
const;
83 const SbVec3f& getProjectionDirection(
void)
const;
84 float getNearDist(
void)
const;
85 float getWidth(
void)
const;
86 float getHeight(
void)
const;
87 float getDepth(
void)
const;
89 void print(FILE * fp)
const;
90 void getViewVolumePlanes(
SbPlane planes[6])
const;
91 void transform(
const SbMatrix &matrix);
94 SbBool intersect(
const SbVec3f & p)
const;
97 SbBool intersect(
const SbBox3f & box)
const;
99 SbBool outsideTest(
const SbPlane & p,
123 #endif // !COIN_SBVIEWVOLUME_H