#include <gre/3dscene.h>
Public Member Functions | |
| bool | CalculateParameters (const DRECT2D &screenrect) |
| void | Clear () |
| void | ClearModelToWorld () |
| bool | ClipSegment (FPOINT3D &pts, FPOINT3D &pte) |
| float | GetAzimuth () const |
| float | GetBaseElevation () const |
| const FPOINT3D & | GetDirection () const |
| float | GetElevation () const |
| float | GetFieldOfViewAngle () const |
| const DRECT3D & | GetFrustum () const |
| const FPOINT3D & | GetLookAt () const |
| const TRANS3D & | GetModelToScreen () const |
| const TRANS3D & | GetModelToUnitCube () const |
| const TRANS3D & | GetModelToView () const |
| const TRANS3D & | GetModelToWorld () const |
| float | GetParallelProjectionDistance () const |
| float | GetRoll () const |
| const DRECT2D & | GetScreenRect () const |
| float | GetSunAzimuthAngle () const |
| float | GetSunElevationAngle () const |
| const TRANS3D & | GetUnitCubeToScreen () const |
| const FPOINT3D & | GetUp () const |
| FPOINT3D | GetViewer () const |
| const TRANS3D & | GetViewToScreen () const |
| const TRANS3D & | GetViewToUnitCube () const |
| const TRANS3D & | GetWorldToScreen () const |
| const TRANS3D & | GetWorldToUnitCube () const |
| const TRANS3D & | GetWorldToView () const |
| bool | IsCalculated () const |
| bool | IsPerspective () const |
| bool | IsRectangleOverlapped (const DRECT3D &rect) const |
| bool | IsSegmentOverlapped (const FPOINT3D &pts, const FPOINT3D &pte) const |
| bool | IsSphereOverlapped (const FPOINT3D ¢er, const float radiussquared=0.0f) const |
| bool | IsStereo () const |
| bool | IsTriangleOverlapped (const FPOINT3D &pt1, const FPOINT3D &pt2, const FPOINT3D &pt3) const |
| SCENE3D & | operator= (const SCENE3D &rhs) |
| SCENE3D (const float FieldOfViewAngle=45) | |
| void | SetAzimuth (const float azimuth, const bool recalculate=true) |
| void | SetBaseElevation (const float BaseElevation) |
| void | SetElevation (const float elevation) |
| void | SetExtents (DOUBLE_ARRAY< DRECT3D > &extents) |
| void | SetFieldOfViewAngle (const float FieldOfViewAngle) |
| void | SetFrustum (const DRECT2D &frustum) |
| void | SetLookAt (const FPOINT3D &lookAt) |
| void | SetModelToWorld (const TRANS3D &ModelToWorld) |
| void | SetMonitorSeparation (const double monitor) |
| void | SetNearFarPlanes (const double nearplane, const double farplane, const bool use=false) |
| void | SetOpticalSeparation (const double optical) |
| void | SetParallelProjectionDistance (const float distance) |
| void | SetPerspective (const bool isPerspective) |
| void | SetRoll (const float roll, const bool recalculate=true) |
| void | SetStereo (const bool isStereo) |
| void | SetStereoDistance (const double distance) |
| void | SetStereoMode (const STEREOMODE mode) |
| void | SetStereoScale (const double scale) |
| void | SetStereoView (const STEREOVIEW view) |
| void | SetSunAzimuthAngle (const float SunAzimuthAngle) |
| void | SetSunElevationAngle (const float SunElevationAngle) |
| void | SetViewer (const FPOINT3D &viewer) |
| void | UpdateAzimuth (const float update) |
| void | UpdateElevation (const float update) |
| void | UpdateRoll (const float update) |
| void | ViewerMoveAlongDirection (const float distance) |
| void | ViewerUpdateZ (const float distance) |
| ~SCENE3D () | |
Private Types | |
| enum | INDEX { INDEX_Left = 0, INDEX_Center = 1, INDEX_Right = 2, INDEX_Count = 3 } |
All angles are in degrees; All distances are in meters; All points are in orthogonal coordinate system
Definition at line 97 of file 3dscene.h.
|
|
|
|
|
|
|
|
|
|
|
Calculate scene parameters for given screen rectangle.
|
|
|
Clear scene parameters.
|
|
|
Clear Model to World transformation to identity transformation.
|
|
||||||||||||
|
pts and pte contains endpoints of intersection in return.
|
|
|
Get azimuth angle in degrees.
|
|
|
Retrieve base elevation.
|
|
|
Get view direction.
|
|
|
Get elevation in meters.
|
|
|
Get field of view angle in degrees.
|
|
|
Get frustum as DRECT3D.
|
|
|
Get look at point.
|
|
|
Get Model to Screen transformation.
|
|
|
Get Model to UnitCube transformation.
|
|
|
Get Model to View transformation.
|
|
|
Get Model to World transformation.
|
|
|
Get parallel projection distance.
|
|
|
Get roll angle in degrees.
|
|
|
Get screen rectangle.
|
|
|
|
|
|
|
|
|
Get UnitCube to Screen transformation.
|
|
|
Get up direction.
|
|
|
Get viewer point.
|
|
|
Get View to Screen transformation.
|
|
|
Get View to UnitCube transformation.
|
|
|
Get World to Screen transformation.
|
|
|
Get World to UnitCube transformation.
|
|
|
Get World to View transformation.
|
|
|
Are scene parameters calculated.
|
|
|
Is projection perspective.
|
|
|
Is given rectangle overlapped with scene frustum.
|
|
||||||||||||
|
Is segment with given endpoints overlapped with scene frustum.
|
|
||||||||||||
|
Is sphere with given center and given radius overlapped with scene frustum.
|
|
|
Is stereo set.
|
|
||||||||||||||||
|
Is triangle with given vertices overlapped with scene frustum.
|
|
|
|
|
||||||||||||
|
Set azimuth angle in degrees.
|
|
|
Set base elevation in meters.
|
|
|
Set elevation angle in degrees.
|
|
|
Set clipping extents for scene.
|
|
|
Set field of view angle in degrees.
|
|
|
Set frustum as DRECT2D.
|
|
|
Set look at point.
|
|
|
Get Model to World transformation.
|
|
|
|
|
||||||||||||||||
|
Get near and far planes.
|
|
|
|
|
|
Set parallel projection distance.
|
|
|
Set perspective projection on or off.
|
|
||||||||||||
|
Set roll angle in degrees.
|
|
|
Set stereo on or off.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set viewer point.
|
|
|
Update azimuth angle in degrees.
|
|
|
Update elevation in meters.
|
|
|
Update roll angle in degrees.
|
|
|
Move viewer point along view direction.
|
|
|
Update viewer point z coordinate.
|
1.3.8-20040913