Rumba C++ SDK
maquina::CameraShape Class Reference

The camera shape. More...

#include <Camera.h>

Inheritance diagram for maquina::CameraShape:
maquina::Shape maquina::Value

Public Member Functions

 CameraShape ()
 
 CameraShape (const Value &v)
 
bool is_orthographic () const
 Does this camera has an orthographic projection. More...
 
void set_is_orthographic (bool)
 Set this camera has an orthographic projection. More...
 
float orthographic_width () const
 Return the orthographic width, the length projected in the width of the camera image. More...
 
void set_orthographic_width (float width)
 Set the orthographic width. More...
 
float near_clipping_plane () const
 Return the near clipping plane. More...
 
void set_near_clipping_plane (float near_clipping_plane)
 Set the near clipping plane. More...
 
float far_clipping_plane () const
 Return the far clipping plane. More...
 
void set_far_clipping_plane (float far_clipping_plane)
 Set the far clipping plane. More...
 
float focal_length () const
 The camera focal length in mm, not used if the camera is orthographic. More...
 
void set_focal_length (float)
 Set the camera focal length in mm. More...
 
float horizontal_aperture () const
 The camera horizontal aperture in cm, not used if the camera is orthographic. More...
 
void set_horizontal_aperture (float)
 Set the camera horizontal aperture in cm. More...
 
float vertical_aperture () const
 The camera vertical aperture in cm, not used if the camera is orthographic. More...
 
void set_vertical_aperture (float)
 Set the camera vertical aperture in cm. More...
 
- Public Member Functions inherited from maquina::Shape
 Shape ()
 
 Shape (const Value &v)
 Cast a Value object in Shape. More...
 
Imath::Box3f bounding_box () const
 Compute the object bounding box. More...
 
bool has_attribute (const char *attribute_name, Topology topology) const
 Test if the shape has this attribute. More...
 
template<typename T >
write_attribute (const char *attribute_name, Topology topology)
 Get a write access to an attribute. More...
 
const Value read_attribute (const char *attribute_name, Topology topology) const
 Get a read access to an attribute. More...
 
bool set_attribute (const char *name, Topology topology, const Value &value)
 Set an attribute. More...
 
bool remove_attribute (const char *name, Topology topology)
 Remove an attribute. More...
 
void finalize ()
 Finalize the shape after deformation. More...
 
size_t topology_size (Topology topology) const
 Get the number of faces, edges or vertices. More...
 
Attributes read_attributes () const
 Return a read-only attribute iteration. More...
 
- Public Member Functions inherited from maquina::Value
 Value ()
 
Value duplicate () const
 Duplicate the value. More...
 
bool as_bool () const
 Returns the value as a bool. More...
 
int as_int () const
 Returns the value as an integer. More...
 
float as_float () const
 Returns the value as a float. More...
 
double as_double () const
 Returns the value as a double. More...
 
const std::string & as_string () const
 Returns the value as a string. More...
 
std::wstring as_wstring () const
 Returns the value as a wstring. More...
 
Imath::V2f as_V2f () const
 Returns the value as a V2f. More...
 
Imath::V3f as_V3f () const
 Returns the value as a V3f. More...
 
Imath::V4f as_V4f () const
 Returns the value as a V4f. More...
 
const Imath::V2das_V2d () const
 Returns the value as a V2d. More...
 
const Imath::V3das_V3d () const
 Returns the value as a V3d. More...
 
const Imath::V4das_V4d () const
 Returns the value as a V4d. More...
 
const Imath::V2ias_V2i () const
 Returns the value as a V2i. More...
 
const Imath::V3ias_V3i () const
 Returns the value as a V3i. More...
 
const Imath::V4ias_V4i () const
 Returns the value as a V4i. More...
 
Imath::M44f as_M44f () const
 Returns the value as a M44f. More...
 
const Imath::M44das_M44d () const
 Returns the value as a M44d. More...
 
const Imath::Box3fas_Box3f () const
 Returns the value as a Box3f. More...
 
const Imath::Color4fas_Color4f () const
 Returns the value as a Color4f. More...
 
Imath::Quatf as_Quatf () const
 Returns the value as a Quatf. More...
 
const Imath::Quatdas_Quatd () const
 Returns the value as a Quatd. More...
 
std::shared_ptr< const UserDataas_user_data () const
 Returns the value as a user data. More...
 
StringView type_name () const
 Return the type name of the Value. More...
 
bool has_node_delegate () const
 Check if this value can produces a NodeDelegate. More...
 
std::shared_ptr< NodeDelegatenode_delegate (const std::shared_ptr< NodeDelegate > &parent, const StringView &name) const
 
bool operator== (const Value &o) const
 Compare the two values. More...
 
bool operator!= (const Value &o) const
 
bool is_instance (const char *value_type_name) const
 Check if this type derives from another value type. More...
 
bool is_interpolable () const
 Checks if the value is interpolable. More...
 
Value lerp (const Value &other, double weight) const
 Performs linear interpolation between this value and another value. More...
 
 Value (bool)
 Create a boolean value. More...
 
 Value (int)
 Create an integer value. More...
 
 Value (float)
 Create a float value. More...
 
 Value (double)
 Create a double value. More...
 
 Value (const char *string)
 Create a string value. More...
 
 Value (const wchar_t *string)
 Create a string value. More...
 
 Value (const std::string &string)
 Create a string value. More...
 
 Value (const std::wstring &string)
 Create a wide string value. More...
 
 Value (const Imath::V2f &)
 Create a Imath::V2f value. More...
 
 Value (const Imath::V3f &)
 Create a Imath::V3f value. More...
 
 Value (const Imath::V4f &)
 Create a Imath::V4f value. More...
 
 Value (const Imath::V2d &)
 Create a Imath::V2d value. More...
 
 Value (const Imath::V3d &)
 Create a Imath::V3d value. More...
 
 Value (const Imath::V4d &)
 Create a Imath::V4d value. More...
 
 Value (const Imath::V2i &)
 Create a Imath::V2i value. More...
 
 Value (const Imath::V3i &)
 Create a Imath::V3i value. More...
 
 Value (const Imath::V4i &)
 Create a Imath::V4i value. More...
 
 Value (const Imath::Color4f &)
 Create a Imath::Color4f value. More...
 
 Value (const Imath::M44f &)
 Create a Imath::M44f value. More...
 
 Value (const Imath::M44d &)
 Create a Imath::M44d value. More...
 
 Value (const Imath::Box3f &)
 Create a Imath::Box3f value. More...
 
 Value (const Imath::Quatf &)
 Create a Imath::Quatf value. More...
 
 Value (const Imath::Quatd &)
 Create a Imath::Quatd value. More...
 
 Value (const std::shared_ptr< const UserData > &user_data)
 Create a user data value. More...
 

Static Public Attributes

static const CameraShape default_value
 The default value. More...
 
- Static Public Attributes inherited from maquina::Value
static const Value default_value
 The default value. More...
 

Additional Inherited Members

- Public Types inherited from maquina::Shape
enum  Topology { constant =0, vertex, face, face_varying }
 The different attribute topologies. More...
 
- Static Public Member Functions inherited from maquina::Value
static bool validate_type_name (const char *type_name)
 Return true if the name is a valid type name. More...
 
static Value get_default_value (const char *type_name)
 Return a default value for a given type. More...
 

Detailed Description

The camera shape.

The value type_name is "Camera"

Constructor & Destructor Documentation

◆ CameraShape() [1/2]

maquina::CameraShape::CameraShape ( )

◆ CameraShape() [2/2]

maquina::CameraShape::CameraShape ( const Value v)

Member Function Documentation

◆ far_clipping_plane()

float maquina::CameraShape::far_clipping_plane ( ) const

Return the far clipping plane.

◆ focal_length()

float maquina::CameraShape::focal_length ( ) const

The camera focal length in mm, not used if the camera is orthographic.

◆ horizontal_aperture()

float maquina::CameraShape::horizontal_aperture ( ) const

The camera horizontal aperture in cm, not used if the camera is orthographic.

◆ is_orthographic()

bool maquina::CameraShape::is_orthographic ( ) const

Does this camera has an orthographic projection.

◆ near_clipping_plane()

float maquina::CameraShape::near_clipping_plane ( ) const

Return the near clipping plane.

◆ orthographic_width()

float maquina::CameraShape::orthographic_width ( ) const

Return the orthographic width, the length projected in the width of the camera image.

◆ set_far_clipping_plane()

void maquina::CameraShape::set_far_clipping_plane ( float  far_clipping_plane)

Set the far clipping plane.

◆ set_focal_length()

void maquina::CameraShape::set_focal_length ( float  )

Set the camera focal length in mm.

◆ set_horizontal_aperture()

void maquina::CameraShape::set_horizontal_aperture ( float  )

Set the camera horizontal aperture in cm.

◆ set_is_orthographic()

void maquina::CameraShape::set_is_orthographic ( bool  )

Set this camera has an orthographic projection.

◆ set_near_clipping_plane()

void maquina::CameraShape::set_near_clipping_plane ( float  near_clipping_plane)

Set the near clipping plane.

◆ set_orthographic_width()

void maquina::CameraShape::set_orthographic_width ( float  width)

Set the orthographic width.

◆ set_vertical_aperture()

void maquina::CameraShape::set_vertical_aperture ( float  )

Set the camera vertical aperture in cm.

◆ vertical_aperture()

float maquina::CameraShape::vertical_aperture ( ) const

The camera vertical aperture in cm, not used if the camera is orthographic.

Member Data Documentation

◆ default_value

const CameraShape maquina::CameraShape::default_value
static

The default value.


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