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,
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.
Definition SbBox3f.h:37
The SbDPViewVolume class is a double precision viewing volume in 3D space.
Definition SbDPViewVolume.h:40
The SbLine class represents a line in 3D space.
Definition SbLine.h:32
The SbMatrix class is a 4x4 dimensional representation of a matrix.
Definition SbMatrix.h:37
The SbPlane class represents a plane in 3D space.
Definition SbPlane.h:34
The SbRotation class represents a rotation in 3D space.
Definition SbRotation.h:33
The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition SbVec2f.h:39
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:40
The SbViewVolume class is a viewing volume in 3D space.
Definition SbViewVolume.h:41
float nearDist
Definition SbViewVolume.h:113
SbVec3f lrf
Definition SbViewVolume.h:116
SbVec3f projDir
Definition SbViewVolume.h:112
ProjectionType type
Definition SbViewVolume.h:110
float nearToFar
Definition SbViewVolume.h:114
ProjectionType
Definition SbViewVolume.h:43
SbVec3f projPoint
Definition SbViewVolume.h:111
SbVec3f ulf
Definition SbViewVolume.h:117
SbVec3f llf
Definition SbViewVolume.h:115
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.