| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/viewinfo.h>

Public Types | |
| enum | CullingPos { Outside = -1, InAndOut = 0, Inside = 1 } |
Public Member Functions | |
| ViewInfo (SO< const Engine > engine) | |
| ~ViewInfo () | |
| virtual int | viewportWidth () const |
| virtual int | viewportHeight () const |
| virtual const Vector & | cameraPosition () const =0 |
| virtual const Vector & | cameraUp () const =0 |
| virtual const Vector & | cameraRight () const =0 |
| virtual const Vector & | cameraDirection () const =0 |
| virtual double | farPlaneDistance () const =0 |
| virtual double | nearPlaneDistance () const =0 |
| virtual double | distanceToCamera2 (const Vector &point) const =0 |
| virtual double | distanceToCamera2 (const Bounds &bbox) const =0 |
| virtual double | pixelSize2 (const Vector ¢er, double radius) const =0 |
| virtual double | pixelSize2 (const Vector &segmentBegin, const Vector &segmentEnd) const =0 |
| VRS_SERIALIZABLE_CLASS_ENUM (CullingPos) | |
| virtual CullingPos | culling (const Vector &point, double radius) const =0 |
| Returns if the given sphere is inside or outside the view frustum. | |
| virtual CullingPos | culling (const Vector &point) const =0 |
| Returns if the given point is inside or outside the view frustum. | |
| virtual CullingPos | culling (const Bounds &bbox) const =0 |
| Returns if the given box is inside or outside the view frustum. | |
| VRS_TYPEINFO (ViewInfo, SharedObj) | |
Protected Member Functions | |
| ViewInfo () | |
Protected Attributes | |
| int | viewportWidth_ |
| int | viewportHeight_ |
Get a valid ViewInfo via Engine::viewInfo(). It operates in the engine's current object space.
Do not trust the camera's frame of reference too much, as the camera might not have one (e.g. multiperspective views).
Subclass ViewInfo if you need to change the view, e.g. when using special projections within shaders or space deformation operators. In that case, use Engine::pushViewInfoFactory() to announce a new ViewInfoFactory.
| VRS::ViewInfo::~ViewInfo | ( | ) |
| VRS::ViewInfo::ViewInfo | ( | ) | [protected] |
| virtual int VRS::ViewInfo::viewportWidth | ( | ) | const [virtual] |
| virtual int VRS::ViewInfo::viewportHeight | ( | ) | const [virtual] |
| virtual const Vector& VRS::ViewInfo::cameraPosition | ( | ) | const [pure virtual] |
Implemented in VRS::ModelviewProjectionViewInfo.
| virtual const Vector& VRS::ViewInfo::cameraUp | ( | ) | const [pure virtual] |
Implemented in VRS::ModelviewProjectionViewInfo.
| virtual const Vector& VRS::ViewInfo::cameraRight | ( | ) | const [pure virtual] |
Implemented in VRS::ModelviewProjectionViewInfo.
| virtual const Vector& VRS::ViewInfo::cameraDirection | ( | ) | const [pure virtual] |
Implemented in VRS::ModelviewProjectionViewInfo.
| virtual double VRS::ViewInfo::farPlaneDistance | ( | ) | const [pure virtual] |
Implemented in VRS::ModelviewProjectionViewInfo.
| virtual double VRS::ViewInfo::nearPlaneDistance | ( | ) | const [pure virtual] |
Implemented in VRS::ModelviewProjectionViewInfo.
| virtual double VRS::ViewInfo::distanceToCamera2 | ( | const Vector & | point | ) | const [pure virtual] |
Implemented in VRS::ModelviewProjectionViewInfo.
| virtual double VRS::ViewInfo::distanceToCamera2 | ( | const Bounds & | bbox | ) | const [pure virtual] |
Implemented in VRS::ModelviewProjectionViewInfo.
| virtual double VRS::ViewInfo::pixelSize2 | ( | const Vector & | center, | |
| double | radius | |||
| ) | const [pure virtual] |
Implemented in VRS::ModelviewProjectionViewInfo.
| virtual double VRS::ViewInfo::pixelSize2 | ( | const Vector & | segmentBegin, | |
| const Vector & | segmentEnd | |||
| ) | const [pure virtual] |
Implemented in VRS::ModelviewProjectionViewInfo.
| VRS::ViewInfo::VRS_SERIALIZABLE_CLASS_ENUM | ( | CullingPos | ) |
| virtual CullingPos VRS::ViewInfo::culling | ( | const Vector & | point, | |
| double | radius | |||
| ) | const [pure virtual] |
Returns if the given sphere is inside or outside the view frustum.
Implemented in VRS::CameraViewInfo, and VRS::ModelviewProjectionViewInfo.
| virtual CullingPos VRS::ViewInfo::culling | ( | const Vector & | point | ) | const [pure virtual] |
Returns if the given point is inside or outside the view frustum.
Implemented in VRS::CameraViewInfo, and VRS::ModelviewProjectionViewInfo.
| virtual CullingPos VRS::ViewInfo::culling | ( | const Bounds & | bbox | ) | const [pure virtual] |
Returns if the given box is inside or outside the view frustum.
Implemented in VRS::CameraViewInfo, and VRS::ModelviewProjectionViewInfo.
int VRS::ViewInfo::viewportWidth_ [protected] |
int VRS::ViewInfo::viewportHeight_ [protected] |