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 The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition: SbVec2f.h:36
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.This box abstraction class ...
Definition: SbBox3f.h:37
SbVec3f ulf
Definition: SbViewVolume.h:116
SbVec3f projPoint
Definition: SbViewVolume.h:110
SbVec3f llf
Definition: SbViewVolume.h:114
The SbRotation class represents a rotation in 3D space.SbRotation is used extensively throughout the ...
Definition: SbRotation.h:33
SbVec3f projDir
Definition: SbViewVolume.h:111
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:37
ProjectionType
Definition: SbViewVolume.h:43
The SbLine class represents a line in 3D space.SbLine provides a way of specifying a directed line...
Definition: SbLine.h:32
The SbMatrix class is a 4x4 dimensional representation of a matrix.SbMatrix is used by many other cla...
Definition: SbMatrix.h:37
ProjectionType type
Definition: SbViewVolume.h:109
float nearDist
Definition: SbViewVolume.h:112
The SbViewVolume class is a viewing volume in 3D space.This class contains the necessary information ...
Definition: SbViewVolume.h:41
The SbPlane class represents a plane in 3D space.SbPlane is used by many other classes in Coin...
Definition: SbPlane.h:34
SbVec3f lrf
Definition: SbViewVolume.h:115
float nearToFar
Definition: SbViewVolume.h:113