Rumba C++ SDK
Camera

Functions

virtual bool maquina::NodeDelegate::is_camera () const
 Returns true if this node is a camera. More...
 
virtual bool maquina::NodeDelegate::is_locked () const
 Return true if the camera can't be moved. More...
 
virtual void maquina::NodeDelegate::set_locked (bool locked, const ModificationContext &mc=ModificationContext::default_mc())
 Set the locked attribute. More...
 
virtual bool maquina::NodeDelegate::is_orthographic (const QueryContext &qc=QueryContext::at_current_frame) const
 Does this camera has an orthographic projection. More...
 
virtual float maquina::NodeDelegate::orthographic_width (const QueryContext &qc=QueryContext::at_current_frame) const
 Return the orthographic width, the length projected in the width of the camera image. More...
 
virtual void maquina::NodeDelegate::set_orthographic_width (float width, const ModificationContext &mc=ModificationContext::default_mc())
 Set the orthographic width. More...
 
virtual float maquina::NodeDelegate::center_of_interest (const QueryContext &qc=QueryContext::at_current_frame) const
 Return the center of interest, the distance of the point the camera is looking at. More...
 
virtual void maquina::NodeDelegate::set_center_of_interest (float coi, const ModificationContext &mc=ModificationContext::default_mc())
 Set the center of interest. More...
 
virtual float maquina::NodeDelegate::near_clipping_plane (const QueryContext &qc=QueryContext::at_current_frame) const
 Return the near clipping plane. More...
 
virtual void maquina::NodeDelegate::set_near_clipping_plane (float near_clipping_plane, const ModificationContext &mc=ModificationContext::default_mc())
 Set the near clipping plane. More...
 
virtual float maquina::NodeDelegate::far_clipping_plane (const QueryContext &qc=QueryContext::at_current_frame) const
 Return the far clipping plane. More...
 
virtual void maquina::NodeDelegate::set_far_clipping_plane (float far_clipping_plane, const ModificationContext &mc=ModificationContext::default_mc())
 Set the far clipping plane. More...
 
virtual Imath::M44d maquina::NodeDelegate::projection_matrix (const QueryContext &qc=QueryContext::at_current_frame) const
 Return the camera's projection matrix. More...
 
virtual float maquina::NodeDelegate::aspect_ratio () const
 Return the camera's aspect ratio, width over height. This aspect ratio is used to shape the viewport's frame. More...
 
virtual std::shared_ptr< NodeDelegatemaquina::NodeDelegate::aim () const
 Return the aim target node if available. More...
 
virtual std::shared_ptr< NodeDelegatemaquina::NodeDelegate::up () const
 Return the up target node if available. More...
 
virtual std::shared_ptr< Observermaquina::NodeDelegate::create_camera_observer (const std::function< void()> &func, bool in_interactive=true)
 Create an observer notified when the NodeDelegate camera attributes have changed. More...
 

Detailed Description

Function Documentation

◆ aim()

virtual std::shared_ptr<NodeDelegate> maquina::NodeDelegate::aim ( ) const
virtual

Return the aim target node if available.

Reimplemented in maquina::NodeDelegateWrapper, and maquina::NodeDelegateRumba.

◆ aspect_ratio()

virtual float maquina::NodeDelegate::aspect_ratio ( ) const
virtual

Return the camera's aspect ratio, width over height. This aspect ratio is used to shape the viewport's frame.

Reimplemented in maquina::NodeDelegateWrapper, and maquina::NodeDelegateRumba.

◆ center_of_interest()

virtual float maquina::NodeDelegate::center_of_interest ( const QueryContext qc = QueryContext::at_current_frame) const
virtual

Return the center of interest, the distance of the point the camera is looking at.

Reimplemented in maquina::NodeDelegateWrapper, and maquina::NodeDelegateRumba.

◆ create_camera_observer()

virtual std::shared_ptr<Observer> maquina::NodeDelegate::create_camera_observer ( const std::function< void()> &  func,
bool  in_interactive = true 
)
virtual

Create an observer notified when the NodeDelegate camera attributes have changed.

Reimplemented in maquina::NodeDelegateWrapper, and maquina::NodeDelegateRumba.

◆ far_clipping_plane()

virtual float maquina::NodeDelegate::far_clipping_plane ( const QueryContext qc = QueryContext::at_current_frame) const
virtual

Return the far clipping plane.

Reimplemented in maquina::NodeDelegateWrapper, and maquina::NodeDelegateRumba.

◆ is_camera()

virtual bool maquina::NodeDelegate::is_camera ( ) const
virtual

Returns true if this node is a camera.

Reimplemented in maquina::NodeDelegateWrapper, and maquina::NodeDelegateRumba.

◆ is_locked()

virtual bool maquina::NodeDelegate::is_locked ( ) const
virtual

Return true if the camera can't be moved.

Reimplemented in maquina::NodeDelegateWrapper, and maquina::NodeDelegateRumba.

◆ is_orthographic()

virtual bool maquina::NodeDelegate::is_orthographic ( const QueryContext qc = QueryContext::at_current_frame) const
virtual

Does this camera has an orthographic projection.

Reimplemented in maquina::NodeDelegateWrapper, and maquina::NodeDelegateRumba.

◆ near_clipping_plane()

virtual float maquina::NodeDelegate::near_clipping_plane ( const QueryContext qc = QueryContext::at_current_frame) const
virtual

Return the near clipping plane.

Reimplemented in maquina::NodeDelegateWrapper, and maquina::NodeDelegateRumba.

◆ orthographic_width()

virtual float maquina::NodeDelegate::orthographic_width ( const QueryContext qc = QueryContext::at_current_frame) const
virtual

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

Reimplemented in maquina::NodeDelegateWrapper, and maquina::NodeDelegateRumba.

◆ projection_matrix()

virtual Imath::M44d maquina::NodeDelegate::projection_matrix ( const QueryContext qc = QueryContext::at_current_frame) const
virtual

Return the camera's projection matrix.

Reimplemented in maquina::NodeDelegateWrapper, and maquina::NodeDelegateRumba.

◆ set_center_of_interest()

virtual void maquina::NodeDelegate::set_center_of_interest ( float  coi,
const ModificationContext mc = ModificationContext::default_mc() 
)
virtual

Set the center of interest.

Reimplemented in maquina::NodeDelegateWrapper, and maquina::NodeDelegateRumba.

◆ set_far_clipping_plane()

virtual void maquina::NodeDelegate::set_far_clipping_plane ( float  far_clipping_plane,
const ModificationContext mc = ModificationContext::default_mc() 
)
virtual

Set the far clipping plane.

Reimplemented in maquina::NodeDelegateWrapper, and maquina::NodeDelegateRumba.

◆ set_locked()

virtual void maquina::NodeDelegate::set_locked ( bool  locked,
const ModificationContext mc = ModificationContext::default_mc() 
)
virtual

Set the locked attribute.

Reimplemented in maquina::NodeDelegateWrapper, and maquina::NodeDelegateRumba.

◆ set_near_clipping_plane()

virtual void maquina::NodeDelegate::set_near_clipping_plane ( float  near_clipping_plane,
const ModificationContext mc = ModificationContext::default_mc() 
)
virtual

Set the near clipping plane.

Reimplemented in maquina::NodeDelegateWrapper, and maquina::NodeDelegateRumba.

◆ set_orthographic_width()

virtual void maquina::NodeDelegate::set_orthographic_width ( float  width,
const ModificationContext mc = ModificationContext::default_mc() 
)
virtual

Set the orthographic width.

Reimplemented in maquina::NodeDelegateWrapper, and maquina::NodeDelegateRumba.

◆ up()

virtual std::shared_ptr<NodeDelegate> maquina::NodeDelegate::up ( ) const
virtual

Return the up target node if available.

Reimplemented in maquina::NodeDelegateWrapper, and maquina::NodeDelegateRumba.