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 (const SpacePtr &xforms)
 Set the transform on the instance. More...
 
void setShader (const ScenePtr &scene, const UT_StringArray &args)
 Set the lens shader 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 711 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 714 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 726 of file BRAY_Interface.h.

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

Access to the underlying object

Definition at line 727 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 721 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 725 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::setTransform ( const SpacePtr xforms)

Set the transform on the instance.

Member Data Documentation

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

Definition at line 751 of file BRAY_Interface.h.


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