Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

RayGina::CORE::RcmPerspective Class Reference

#include <RcmPerspective.hxx>

Inheritance diagram for RayGina::CORE::RcmPerspective:

RayGina::CORE::RcmBase RayGina::CORE::RObject List of all members.

Public Member Functions

 RcmPerspective (RVec3r org, RVec3r dir, RVec3r up, RReal angle=25.0, RReal aspect_ratio=1.0, RReal near_clip_plane=0.0, RReal far_clip_plane=Infinity, RUInt32 width=640, RUInt32 height=480)
virtual ~RcmPerspective ()
virtual RExtensiongetInstanceExtension () const
const RStatus setNearClippingPlane (const RReal near_clip_plane)
RReal getNearClippingPlane () const
const RStatus setFarClippingPlane (const RReal far_clip_plane)
RReal getFarClippingPlane () const
const RStatus setAspectRatio (const RReal aspect_ratio)
RReal getAspectRatio () const
const RStatus setViewAngle (const RReal new_view_angle)
const RReal getViewAngle ()
virtual const RStatus setOrigin (const RVec3r newOrigin)
virtual const RVec3r getOrigin () const
virtual const RStatus setDirection (const RVec3r newDirection)
virtual const RVec3r getDirection () const
virtual const RStatus setUp (const RVec3r newUp)
virtual const RVec3r getUp () const
virtual const RStatus setImageSize (const RUInt32 width, const RUInt32 height)
virtual const RStatus setImageSize (const RimBase *image)
virtual void initRay (RRenderCom *theRenderCom)

Static Public Member Functions

RExtension__getExtension ()
RObjectcreateInstance ()

Private Member Functions

const RStatus reinit ()

Static Private Member Functions

const RStatus _setAttrNearClippingPlane (RObject *instance, const RReal value)
const RReal _getAttrNearClippingPlane (const RObject *instance, RRenderCom *renderCom)
const RStatus _setAttrFarClippingPlane (RObject *instance, const RReal value)
const RReal _getAttrFarClippingPlane (const RObject *instance, RRenderCom *renderCom)
const RStatus _setAspectRatioAttr (RObject *instance, const RReal value)
const RReal _getAspectRatioAttr (const RObject *instance, RRenderCom *renderCom)
const RStatus _setAngleOfView (RObject *instance, const RReal value)
const RReal _getAngleOfView (const RObject *instance, RRenderCom *renderCom)
const RStatus _setOrigin (RObject *instance, const RVec3r value)
const RVec3r _getOrigin (const RObject *instance, RRenderCom *renderCom)
const RStatus _setDirection (RObject *instance, const RVec3r value)
const RVec3r _getDirection (const RObject *instance, RRenderCom *renderCom)
const RStatus _setUp (RObject *instance, const RVec3r value)
const RVec3r _getUp (const RObject *instance, RRenderCom *renderCom)
const RStatus _initialize (RatStaticContainer *attributes)

Private Attributes

RVec3r _org
 The origion of the camera.
RVec3r _dir
 The direction of the camera.
RVec3r _calc_dir
 The direction of the camera.
RVec3r _up
 The up vector for the camera.
RVec3r _real_up
 The up vector for the camera.
RVec3r _wVec
 help vector 1
RVec3r _hVec
 help vector 2
RUInt32 _resx
 image resolution in x
RUInt32 _resy
 image resolution in y
RReal _one_resx
 image resolution in 1 / x
RReal _one_resy
 image resolution in 1 / y
RReal _near_clip_plane
 near clipping plane
RReal _far_clip_plane
 far clipping plane
RReal _aspect_ratio
 the aspect ratio for the cam
RReal _angle
 the view angle of the camera

Static Private Attributes

RExtension _extensionInfo

Constructor & Destructor Documentation

RayGina::CORE::RcmPerspective::RcmPerspective RVec3r  org,
RVec3r  dir,
RVec3r  up,
RReal  angle = 25.0,
RReal  aspect_ratio = 1.0,
RReal  near_clip_plane = 0.0,
RReal  far_clip_plane = Infinity,
RUInt32  width = 640,
RUInt32  height = 480
[inline]
 

Definition at line 109 of file RcmPerspective.hxx.

virtual RayGina::CORE::RcmPerspective::~RcmPerspective  )  [inline, virtual]
 

Definition at line 112 of file RcmPerspective.hxx.


Member Function Documentation

RExtension* RayGina::CORE::RcmPerspective::__getExtension  )  [inline, static]
 

Definition at line 118 of file RcmPerspective.hxx.

const RReal RayGina::CORE::RcmPerspective::_getAngleOfView const RObject instance,
RRenderCom renderCom
[inline, static, private]
 

Definition at line 71 of file RcmPerspective.hxx.

const RReal RayGina::CORE::RcmPerspective::_getAspectRatioAttr const RObject instance,
RRenderCom renderCom
[inline, static, private]
 

Definition at line 65 of file RcmPerspective.hxx.

const RReal RayGina::CORE::RcmPerspective::_getAttrFarClippingPlane const RObject instance,
RRenderCom renderCom
[inline, static, private]
 

Definition at line 59 of file RcmPerspective.hxx.

const RReal RayGina::CORE::RcmPerspective::_getAttrNearClippingPlane const RObject instance,
RRenderCom renderCom
[inline, static, private]
 

Definition at line 53 of file RcmPerspective.hxx.

const RVec3r RayGina::CORE::RcmPerspective::_getDirection const RObject instance,
RRenderCom renderCom
[inline, static, private]
 

Definition at line 83 of file RcmPerspective.hxx.

const RVec3r RayGina::CORE::RcmPerspective::_getOrigin const RObject instance,
RRenderCom renderCom
[inline, static, private]
 

Definition at line 77 of file RcmPerspective.hxx.

const RVec3r RayGina::CORE::RcmPerspective::_getUp const RObject instance,
RRenderCom renderCom
[inline, static, private]
 

Definition at line 89 of file RcmPerspective.hxx.

const RStatus RayGina::CORE::RcmPerspective::_initialize RatStaticContainer attributes  )  [inline, static, private]
 

Definition at line 95 of file RcmPerspective.hxx.

const RStatus RayGina::CORE::RcmPerspective::_setAngleOfView RObject instance,
const RReal  value
[inline, static, private]
 

Definition at line 68 of file RcmPerspective.hxx.

const RStatus RayGina::CORE::RcmPerspective::_setAspectRatioAttr RObject instance,
const RReal  value
[inline, static, private]
 

Definition at line 62 of file RcmPerspective.hxx.

const RStatus RayGina::CORE::RcmPerspective::_setAttrFarClippingPlane RObject instance,
const RReal  value
[inline, static, private]
 

Definition at line 56 of file RcmPerspective.hxx.

const RStatus RayGina::CORE::RcmPerspective::_setAttrNearClippingPlane RObject instance,
const RReal  value
[inline, static, private]
 

Definition at line 50 of file RcmPerspective.hxx.

const RStatus RayGina::CORE::RcmPerspective::_setDirection RObject instance,
const RVec3r  value
[inline, static, private]
 

Definition at line 80 of file RcmPerspective.hxx.

const RStatus RayGina::CORE::RcmPerspective::_setOrigin RObject instance,
const RVec3r  value
[inline, static, private]
 

Definition at line 74 of file RcmPerspective.hxx.

const RStatus RayGina::CORE::RcmPerspective::_setUp RObject instance,
const RVec3r  value
[inline, static, private]
 

Definition at line 86 of file RcmPerspective.hxx.

RObject* RayGina::CORE::RcmPerspective::createInstance  )  [inline, static]
 

Definition at line 122 of file RcmPerspective.hxx.

RReal RayGina::CORE::RcmPerspective::getAspectRatio  )  const [inline]
 

Definition at line 148 of file RcmPerspective.hxx.

virtual const RVec3r RayGina::CORE::RcmPerspective::getDirection  )  const [inline, virtual]
 

Definition at line 174 of file RcmPerspective.hxx.

RReal RayGina::CORE::RcmPerspective::getFarClippingPlane  )  const [inline]
 

Definition at line 140 of file RcmPerspective.hxx.

virtual RExtension* RayGina::CORE::RcmPerspective::getInstanceExtension  )  const [inline, virtual]
 

returns the RExtension for the instance If it returns NULL this instance is not able to act as an extension

Implements RayGina::CORE::RObject.

Definition at line 114 of file RcmPerspective.hxx.

RReal RayGina::CORE::RcmPerspective::getNearClippingPlane  )  const [inline]
 

Definition at line 130 of file RcmPerspective.hxx.

virtual const RVec3r RayGina::CORE::RcmPerspective::getOrigin  )  const [inline, virtual]
 

Definition at line 167 of file RcmPerspective.hxx.

virtual const RVec3r RayGina::CORE::RcmPerspective::getUp  )  const [inline, virtual]
 

Definition at line 181 of file RcmPerspective.hxx.

const RReal RayGina::CORE::RcmPerspective::getViewAngle  )  [inline]
 

Definition at line 159 of file RcmPerspective.hxx.

void RcmPerspective::initRay RRenderCom theRenderCom  )  [virtual]
 

Implements RayGina::CORE::RcmBase.

Definition at line 22 of file RcmPerspective.cxx.

const RStatus RcmPerspective::reinit  )  [private]
 

Definition at line 35 of file RcmPerspective.cxx.

const RStatus RayGina::CORE::RcmPerspective::setAspectRatio const RReal  aspect_ratio  )  [inline]
 

Definition at line 144 of file RcmPerspective.hxx.

virtual const RStatus RayGina::CORE::RcmPerspective::setDirection const RVec3r  newDirection  )  [inline, virtual]
 

Definition at line 170 of file RcmPerspective.hxx.

const RStatus RayGina::CORE::RcmPerspective::setFarClippingPlane const RReal  far_clip_plane  )  [inline]
 

Definition at line 136 of file RcmPerspective.hxx.

const RStatus RcmPerspective::setImageSize const RimBase image  )  [virtual]
 

Definition at line 60 of file RcmPerspective.cxx.

const RStatus RcmPerspective::setImageSize const RUInt32  width,
const RUInt32  height
[virtual]
 

Implements RayGina::CORE::RcmBase.

Definition at line 51 of file RcmPerspective.cxx.

const RStatus RayGina::CORE::RcmPerspective::setNearClippingPlane const RReal  near_clip_plane  )  [inline]
 

Definition at line 126 of file RcmPerspective.hxx.

virtual const RStatus RayGina::CORE::RcmPerspective::setOrigin const RVec3r  newOrigin  )  [inline, virtual]
 

Definition at line 163 of file RcmPerspective.hxx.

virtual const RStatus RayGina::CORE::RcmPerspective::setUp const RVec3r  newUp  )  [inline, virtual]
 

Definition at line 177 of file RcmPerspective.hxx.

const RStatus RayGina::CORE::RcmPerspective::setViewAngle const RReal  new_view_angle  )  [inline]
 

Definition at line 152 of file RcmPerspective.hxx.


Member Data Documentation

RReal RayGina::CORE::RcmPerspective::_angle [private]
 

the view angle of the camera

Definition at line 46 of file RcmPerspective.hxx.

RReal RayGina::CORE::RcmPerspective::_aspect_ratio [private]
 

the aspect ratio for the cam

Definition at line 44 of file RcmPerspective.hxx.

RVec3r RayGina::CORE::RcmPerspective::_calc_dir [private]
 

The direction of the camera.

Definition at line 20 of file RcmPerspective.hxx.

RVec3r RayGina::CORE::RcmPerspective::_dir [private]
 

The direction of the camera.

Definition at line 18 of file RcmPerspective.hxx.

RExtension RcmPerspective::_extensionInfo [static, private]
 

Initial value:

 RExtension(    RExtension::SUPERCLASSID_CAMERA,
                                                                                                                                                                                                                                RExtension::CLASSID_CORE_RCMPERSPECTIVE,
                                                                                                                                                                                                                                1,
                                                                                                                                                                                                                                1,
                                                                                                                                                                                                                                "Perspective Camera",
                                                                                                                                                                                                                                "RcmPerspective",
                                                                                                                                                                                                                                "Oliver Heyme",
                                                                                                                                                                                                                                "olihey@raygina.de",
                                                                                                                                                                                                                                "www.raygina.de",
                                                                                                                                                                                                                                RcmPerspective::createInstance,
                                                                                                                                                                                                                                RcmPerspective::_initialize)

Definition at line 10 of file RcmPerspective.cxx.

RReal RayGina::CORE::RcmPerspective::_far_clip_plane [private]
 

far clipping plane

Definition at line 42 of file RcmPerspective.hxx.

RVec3r RayGina::CORE::RcmPerspective::_hVec [private]
 

help vector 2

Definition at line 29 of file RcmPerspective.hxx.

RReal RayGina::CORE::RcmPerspective::_near_clip_plane [private]
 

near clipping plane

Definition at line 40 of file RcmPerspective.hxx.

RReal RayGina::CORE::RcmPerspective::_one_resx [private]
 

image resolution in 1 / x

Definition at line 36 of file RcmPerspective.hxx.

RReal RayGina::CORE::RcmPerspective::_one_resy [private]
 

image resolution in 1 / y

Definition at line 38 of file RcmPerspective.hxx.

RVec3r RayGina::CORE::RcmPerspective::_org [private]
 

The origion of the camera.

Definition at line 16 of file RcmPerspective.hxx.

RVec3r RayGina::CORE::RcmPerspective::_real_up [private]
 

The up vector for the camera.

Definition at line 24 of file RcmPerspective.hxx.

RUInt32 RayGina::CORE::RcmPerspective::_resx [private]
 

image resolution in x

Definition at line 32 of file RcmPerspective.hxx.

RUInt32 RayGina::CORE::RcmPerspective::_resy [private]
 

image resolution in y

Definition at line 34 of file RcmPerspective.hxx.

RVec3r RayGina::CORE::RcmPerspective::_up [private]
 

The up vector for the camera.

Definition at line 22 of file RcmPerspective.hxx.

RVec3r RayGina::CORE::RcmPerspective::_wVec [private]
 

help vector 1

Definition at line 27 of file RcmPerspective.hxx.


The documentation for this class was generated from the following files:
Generated on Sun Dec 2 17:01:10 2007 for rayGina by  doxygen 1.3.9.1