GRE::SCENE3D Class Reference
SCENE3D class describes view scene and all transformation between model and world and view and unit cube and screen.
More...
#include <gre/3dscene.h>
List of all members.
Detailed Description
SCENE3D class describes view scene and all transformation between model and world and view and unit cube and screen.
All angles are in degrees; All distances are in meters; All points are in orthogonal coordinate system
Constructor & Destructor Documentation
| GRE::SCENE3D::SCENE3D |
( |
const float |
FieldOfViewAngle = 45 |
) |
|
| GRE::SCENE3D::~SCENE3D |
( |
|
) |
|
Member Function Documentation
| bool GRE::SCENE3D::CalculateParameters |
( |
const DRECT2D & |
screenrect |
) |
|
Calculate scene parameters for given screen rectangle.
- Returns:
- true if calculation is completed
| void GRE::SCENE3D::Clear |
( |
|
) |
|
| void GRE::SCENE3D::ClearModelToWorld |
( |
|
) |
|
Clear Model to World transformation to identity transformation.
Clip segment with endpoints pts and pte with frustum.
If segment intersects frustum than pts and pte contains endpoints of intersection in return.
- Returns:
- true if segment intersects frustum
| float GRE::SCENE3D::GetAzimuth |
( |
|
) |
const |
Get azimuth angle in degrees.
- Returns:
- azimuth angle
| float GRE::SCENE3D::GetBaseElevation |
( |
|
) |
const |
| const FPOINT3D& GRE::SCENE3D::GetDirection |
( |
|
) |
const |
Get view direction.
- Returns:
- view direction
| float GRE::SCENE3D::GetElevation |
( |
|
) |
const [inline] |
Get elevation in meters.
- Returns:
- elevation in meters
| float GRE::SCENE3D::GetFieldOfViewAngle |
( |
|
) |
const |
Get field of view angle in degrees.
- Returns:
- field of view angle in degrees
| const DRECT3D& GRE::SCENE3D::GetFrustum |
( |
|
) |
const |
| const FPOINT3D& GRE::SCENE3D::GetLookAt |
( |
|
) |
const |
Get look at point.
- Returns:
- look at point
| const TRANS3D& GRE::SCENE3D::GetModelToScreen |
( |
|
) |
const [inline] |
Get Model to Screen transformation.
- Returns:
- Model to Screen transformation
| const TRANS3D& GRE::SCENE3D::GetModelToUnitCube |
( |
|
) |
const [inline] |
Get Model to UnitCube transformation.
- Returns:
- Model to UnitCube transformation
| const TRANS3D& GRE::SCENE3D::GetModelToView |
( |
|
) |
const [inline] |
Get Model to View transformation.
- Returns:
- Model to View transformation
| const TRANS3D& GRE::SCENE3D::GetModelToWorld |
( |
|
) |
const [inline] |
Get Model to World transformation.
- Returns:
- Model to World transformation
| float GRE::SCENE3D::GetParallelProjectionDistance |
( |
|
) |
const |
Get parallel projection distance.
- Returns:
- parallel projection distance
| double GRE::SCENE3D::GetPixelSizeInMeters |
( |
|
) |
const |
Get pixel sixe in meters.
| float GRE::SCENE3D::GetRoll |
( |
|
) |
const |
Get roll angle in degrees.
- Returns:
- roll angle
| const DRECT2D& GRE::SCENE3D::GetScreenRect |
( |
|
) |
const |
Get screen rectangle.
- Returns:
- screen rectangle
| STEREOVIEW GRE::SCENE3D::GetStereoView |
( |
|
) |
const [inline] |
| float GRE::SCENE3D::GetSunAzimuthAngle |
( |
|
) |
const |
| float GRE::SCENE3D::GetSunElevationAngle |
( |
|
) |
const |
| const TRANS3D& GRE::SCENE3D::GetUnitCubeToScreen |
( |
|
) |
const [inline] |
Get UnitCube to Screen transformation.
- Returns:
- UnitCube to Screen transformation
| const FPOINT3D& GRE::SCENE3D::GetUp |
( |
|
) |
const |
Get up direction.
- Returns:
- up direction
| FPOINT3D GRE::SCENE3D::GetViewer |
( |
|
) |
const |
Get viewer point.
- Returns:
- viewer point
| const TRANS3D& GRE::SCENE3D::GetViewToScreen |
( |
|
) |
const [inline] |
Get View to Screen transformation.
- Returns:
- View to Screen transformation
| const TRANS3D& GRE::SCENE3D::GetViewToUnitCube |
( |
|
) |
const [inline] |
Get View to UnitCube transformation.
- Returns:
- View to UnitCube transformation
| const TRANS3D& GRE::SCENE3D::GetWorldToScreen |
( |
|
) |
const [inline] |
Get World to Screen transformation.
- Returns:
- World to Screen transformation
| const TRANS3D& GRE::SCENE3D::GetWorldToUnitCube |
( |
|
) |
const [inline] |
Get World to UnitCube transformation.
- Returns:
- World to UnitCube transformation
| const TRANS3D& GRE::SCENE3D::GetWorldToView |
( |
|
) |
const [inline] |
Get World to View transformation.
- Returns:
- World to View transformation
| bool GRE::SCENE3D::IsCalculated |
( |
|
) |
const |
Are scene parameters calculated.
- Returns:
- true if scene parameters are calculated
| bool GRE::SCENE3D::IsPerspective |
( |
|
) |
const |
Is projection perspective.
- Returns:
- true if projecton is perspective
| bool GRE::SCENE3D::IsRectangleOverlapped |
( |
const DRECT3D & |
rect |
) |
const |
Is given rectangle overlapped with scene frustum.
- Returns:
- true if rectangle is overlapped
| bool GRE::SCENE3D::IsSegmentOverlapped |
( |
const FPOINT3D & |
pts, |
|
|
const FPOINT3D & |
pte | |
|
) |
| | const |
Is segment with given endpoints overlapped with scene frustum.
- Returns:
- true if segement is overlapped
| bool GRE::SCENE3D::IsSphereOverlapped |
( |
const FPOINT3D & |
center, |
|
|
const float |
radiussquared = 0.0f | |
|
) |
| | const |
Is sphere with given center and given radius overlapped with scene frustum.
- Returns:
- true if sphere is overlapped
| bool GRE::SCENE3D::IsStereo |
( |
|
) |
const |
Is stereo set.
- Returns:
- true if stereo is set
Is triangle with given vertices overlapped with scene frustum.
- Returns:
- true if triangle is overlapped
| void GRE::SCENE3D::SetAzimuth |
( |
const float |
azimuth, |
|
|
const bool |
recalculate = true | |
|
) |
| | |
Set azimuth angle in degrees.
| void GRE::SCENE3D::SetBaseElevation |
( |
const float |
BaseElevation |
) |
|
Set base elevation in meters.
| void GRE::SCENE3D::SetElevation |
( |
const float |
elevation |
) |
|
Set elevation angle in degrees.
Set clipping extents for scene.
| void GRE::SCENE3D::SetFieldOfViewAngle |
( |
const float |
FieldOfViewAngle |
) |
|
Set field of view angle in degrees.
| void GRE::SCENE3D::SetFrustum |
( |
const DRECT2D & |
frustum |
) |
|
| void GRE::SCENE3D::SetLookAt |
( |
const FPOINT3D & |
lookAt |
) |
|
| void GRE::SCENE3D::SetModelToWorld |
( |
const TRANS3D & |
ModelToWorld |
) |
|
Get Model to World transformation.
| void GRE::SCENE3D::SetMonitorSeparation |
( |
const double |
monitor |
) |
|
| void GRE::SCENE3D::SetNearFarPlanes |
( |
const double |
nearplane, |
|
|
const double |
farplane, |
|
|
const bool |
use = false | |
|
) |
| | |
| void GRE::SCENE3D::SetOpticalSeparation |
( |
const double |
optical |
) |
|
| void GRE::SCENE3D::SetParallelProjectionDistance |
( |
const float |
distance |
) |
|
Set parallel projection distance.
| void GRE::SCENE3D::SetPerspective |
( |
const bool |
isPerspective |
) |
|
Set perspective projection on or off.
| void GRE::SCENE3D::SetRoll |
( |
const float |
roll, |
|
|
const bool |
recalculate = true | |
|
) |
| | |
Set roll angle in degrees.
| void GRE::SCENE3D::SetStereo |
( |
const bool |
isStereo |
) |
|
| void GRE::SCENE3D::SetStereoDistance |
( |
const double |
distance |
) |
|
| void GRE::SCENE3D::SetStereoScale |
( |
const double |
scale |
) |
|
| void GRE::SCENE3D::SetStereoView |
( |
const STEREOVIEW |
stereoview |
) |
|
| void GRE::SCENE3D::SetSunAzimuthAngle |
( |
const float |
SunAzimuthAngle |
) |
|
| void GRE::SCENE3D::SetSunElevationAngle |
( |
const float |
SunElevationAngle |
) |
|
| void GRE::SCENE3D::SetViewer |
( |
const FPOINT3D & |
viewer |
) |
|
| void GRE::SCENE3D::UpdateAzimuth |
( |
const float |
update |
) |
|
Update azimuth angle in degrees.
| void GRE::SCENE3D::UpdateElevation |
( |
const float |
update |
) |
|
Update elevation in meters.
| void GRE::SCENE3D::UpdateRoll |
( |
const float |
update |
) |
|
Update roll angle in degrees.
| void GRE::SCENE3D::ViewerMoveAlongDirection |
( |
const float |
distance |
) |
|
Move viewer point along view direction.
| void GRE::SCENE3D::ViewerUpdateZ |
( |
const float |
distance |
) |
|
Update viewer point z coordinate.
The documentation for this class was generated from the following file: