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
SbVec3f getSightPoint(const float distFromEye) const
Definition: SbViewVolume.cpp:305
const float * getValue(void) const
Definition: SbRotation.cpp:179
SbVec3f getPlanePoint(const float distFromEye, const SbVec2f &normPoint) const
Definition: SbViewVolume.cpp:319
The SbRotation class represents a rotation in 3D space.
Definition: SbRotation.h:33
void translateCamera(const SbVec3f &v)
Definition: SbViewVolume.cpp:502
~SbViewVolume(void)
Definition: SbViewVolume.cpp:175
SbVec3f projPoint
Definition: SbViewVolume.h:110
SbVec3f zVector(void) const
Definition: SbViewVolume.cpp:517
SbViewVolume(void)
Definition: SbViewVolume.cpp:168
The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition: SbVec2f.h:36
The SbMatrix class is a 4x4 dimensional representation of a matrix.
Definition: SbMatrix.h:37
void projectPointToLine(const SbVec2f &pt, SbLine &line) const
Definition: SbViewVolume.cpp:232
void frustum(float left, float right, float bottom, float top, float nearval, float farval)
Definition: SbViewVolume.cpp:468
SbVec2f projectBox(const SbBox3f &box) const
Definition: SbViewVolume.cpp:364
float getWidth(void) const
Definition: SbViewVolume.cpp:631
void getMatrices(SbMatrix &affine, SbMatrix &proj) const
Definition: SbViewVolume.cpp:185
SbBool outsideTest(const SbPlane &p, const SbVec3f &bmin, const SbVec3f &bmax) const
Definition: SbViewVolume.cpp:813
float getWorldToScreenScale(const SbVec3f &worldCenter, float normRadius) const
Definition: SbViewVolume.cpp:352
The SbVec3d class is a 3 dimensional vector with double precision floating point coordinates.
Definition: SbVec3d.h:35
const SbVec3f & getMin(void) const
Definition: SbBox3f.cpp:122
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.
Definition: SbBox3f.h:37
const SbVec3f & getProjectionDirection(void) const
Definition: SbViewVolume.cpp:609
float nearToFar
Definition: SbViewVolume.h:113
float getNearDist(void) const
Definition: SbViewVolume.cpp:620
ProjectionType type
Definition: SbViewVolume.h:109
const SbVec3f & getProjectionPoint(void) const
Definition: SbViewVolume.cpp:597
ProjectionType
Definition: SbViewVolume.h:43
const SbVec3f & getMax(void) const
Definition: SbBox3f.cpp:134
void scaleHeight(float ratio)
Definition: SbViewVolume.cpp:575
void perspective(float fovy, float aspect, float nearval, float farval)
Definition: SbViewVolume.cpp:448
The SbDPMatrix class is a 4x4 dimensional representation of a double-precision matrix.
Definition: SbDPMatrix.h:38
SbVec3f llf
Definition: SbViewVolume.h:114
SbPlane getPlane(const float distFromEye) const
Definition: SbViewVolume.cpp:293
ProjectionType getProjectionType(void) const
Definition: SbViewVolume.cpp:588
SbVec3f lrf
Definition: SbViewVolume.h:115
void rotateCamera(const SbRotation &q)
Definition: SbViewVolume.cpp:482
float nearDist
Definition: SbViewVolume.h:112
SbMatrix getCameraSpaceMatrix(void) const
Definition: SbViewVolume.cpp:218
void scaleWidth(float ratio)
Definition: SbViewVolume.cpp:562
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:37
void ortho(float left, float right, float bottom, float top, float nearval, float farval)
Definition: SbViewVolume.cpp:430
The SbVec2d class is a 2 dimensional vector with double precision floating point coordinates.
Definition: SbVec2d.h:36
SbViewVolume zNarrow(float nearval, float farval) const
Definition: SbViewVolume.cpp:533
SbViewVolume narrow(float left, float bottom, float right, float top) const
Definition: SbViewVolume.cpp:386
float getDepth(void) const
Definition: SbViewVolume.cpp:654
SbBool isInHalfSpace(const SbVec3f &point) const
Definition: SbPlane.cpp:229
SbMatrix getMatrix(void) const
Definition: SbViewVolume.cpp:199
void projectToScreen(const SbVec3f &src, SbVec3f &dst) const
Definition: SbViewVolume.cpp:277
void transform(const SbMatrix &matrix)
Definition: SbViewVolume.cpp:708
const SbMat & getValue(void) const
Definition: SbMatrix.cpp:255
The SbLine class represents a line in 3D space.
Definition: SbLine.h:32
The SbViewVolume class is a viewing volume in 3D space.
Definition: SbViewVolume.h:41
void print(FILE *fp) const
Definition: SbVec3f.cpp:761
void setValue(const SbVec3f &origin, const SbVec3f &point)
Definition: SbLine.cpp:88
SbVec3f getViewUp(void) const
Definition: SbViewVolume.cpp:723
SbRotation getAlignRotation(SbBool rightAngleOnly=0) const
Definition: SbViewVolume.cpp:334
SbVec3f projDir
Definition: SbViewVolume.h:111
SbBool getClosestPoints(const SbLine &line2, SbVec3f &ptOnThis, SbVec3f &ptOnLine2) const
Definition: SbLine.cpp:119
float getHeight(void) const
Definition: SbViewVolume.cpp:642
void extendBy(const SbVec3f &point)
Definition: SbBox3f.cpp:178
SbVec3f ulf
Definition: SbViewVolume.h:116
The SbPlane class represents a plane in 3D space.
Definition: SbPlane.h:34
SbBool intersect(const SbVec3f &p) const
Definition: SbViewVolume.cpp:735
void getViewVolumePlanes(SbPlane planes[6]) const
Definition: SbViewVolume.cpp:699
void print(FILE *fp) const
Definition: SbViewVolume.cpp:664
void scale(float factor)
Definition: SbViewVolume.cpp:549
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Wed Jul 24 2019 for Coin by Doxygen. 1.8.17