HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BRAY::CameraPtr Class Reference

#include <BRAY_Interface.h>

Public Member Functions

 CameraPtr (const UT_SharedPtr< BRAY_Camera > &cp=UT_SharedPtr< BRAY_Camera >())
 
 ~CameraPtr ()
 
bool isValid () const
 Test validity. More...
 
void setTransform (ScenePtr &ptr, const SpacePtr &xforms)
 Set the transform on the camera. More...
 
void setShader (const ScenePtr &scene, const UT_StringArray &args)
 Set the lens shader for the camera. More...
 
void setShaderMaterial (const ScenePtr &scene, const MaterialPtr &mat)
 Set the lens shader material for the camera. More...
 
OptionSet objectProperties ()
 Get the current object properties for modification. More...
 
void resizeCameraProperties (int nseg)
 
UT_Array< OptionSetcameraProperties ()
 Get the current camera properties for modification. More...
 
void commitOptions (ScenePtr &scene)
 After changing any options, must lock prior to rendering. More...
 
SYS_SAFE_BOOL operator bool () const
 
const BRAY_Camera * cameraPtr () const
 
BRAY_Camera * cameraPtr ()
 

Protected Attributes

UT_SharedPtr< BRAY_Camera > myCamera
 

Detailed Description

Definition at line 1006 of file BRAY_Interface.h.

Constructor & Destructor Documentation

BRAY::CameraPtr::CameraPtr ( const UT_SharedPtr< BRAY_Camera > &  cp = UT_SharedPtr<BRAY_Camera>())
inline

Definition at line 1009 of file BRAY_Interface.h.

BRAY::CameraPtr::~CameraPtr ( )

Member Function Documentation

UT_Array<OptionSet> BRAY::CameraPtr::cameraProperties ( )

Get the current camera properties for modification.

const BRAY_Camera* BRAY::CameraPtr::cameraPtr ( ) const
inline

Access to the underlying object

Definition at line 1021 of file BRAY_Interface.h.

BRAY_Camera* BRAY::CameraPtr::cameraPtr ( )
inline

Access to the underlying object

Definition at line 1022 of file BRAY_Interface.h.

void BRAY::CameraPtr::commitOptions ( ScenePtr scene)

After changing any options, must lock prior to rendering.

bool BRAY::CameraPtr::isValid ( ) const
inline

Test validity.

Definition at line 1016 of file BRAY_Interface.h.

OptionSet BRAY::CameraPtr::objectProperties ( )

Get the current object properties for modification.

SYS_SAFE_BOOL BRAY::CameraPtr::operator bool ( ) const
inline

Access to the underlying object

Definition at line 1020 of file BRAY_Interface.h.

void BRAY::CameraPtr::resizeCameraProperties ( int  nseg)

Set number of motion samples for animated camera properties (1 upon construction). The last motion sample is assumed to have time offset of 1.0. (eg. if there are 3 samples, the time offsets are: 0, 0.5, 1.0)

void BRAY::CameraPtr::setShader ( const ScenePtr scene,
const UT_StringArray args 
)

Set the lens shader for the camera.

void BRAY::CameraPtr::setShaderMaterial ( const ScenePtr scene,
const MaterialPtr mat 
)

Set the lens shader material for the camera.

void BRAY::CameraPtr::setTransform ( ScenePtr ptr,
const SpacePtr xforms 
)

Set the transform on the camera.

Member Data Documentation

UT_SharedPtr<BRAY_Camera> BRAY::CameraPtr::myCamera
protected

Definition at line 1050 of file BRAY_Interface.h.


The documentation for this class was generated from the following file: