CSAD
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
csad::Camera Class Reference

Camera - component defines the projection matrix of points Transform into a point Target. More...

Inheritance diagram for csad::Camera:
csad::SceneComponent csad::Component csad::BaseObject

Public Member Functions

_FORCEINLINE bool clearColor ()
 Return true if color frame have the background.
 
_FORCEINLINE bool clearDepth ()
 Return true if depth frame cleanning before render.
 
_FORCEINLINE bool cullFace ()
 return state
 
_FORCEINLINE bool frontFace ()
 return state
 
_FORCEINLINE double getFov ()
 Return the angle of view or the frame size.
 
_FORCEINLINE double getMaxRange ()
 Return distance of far clipping plane.
 
_FORCEINLINE double getMinRange ()
 Return distance of near clipping plane.
 
_FORCEINLINE unsigned int getProj ()
 Return model projection.
 
CSAD_API ScenegetScene ()
 The environment belongs to the camera.
 
CSAD_API vector4f getViewPort ()
 Returns the position and dimensions of the window display, in percent.
 
CSAD_API vector4i getViewPort (GlContext *context)
 Returns the position and dimensions of the display window, in pixels.
 
CSAD_API vector4i getViewPort (Display *display)
 Returns the position and dimensions of the display window, in pixels.
 
CSAD_API bool makeCurrent (unsigned int toTextureId=0)
 Setting projection matrix.
 
CSAD_API bool makeCurrent (vector4i &rect, unsigned int toTextureId=0)
 Setting projection matrices, and the region's display.
 
CSAD_API matrix4fprojMatrix ()
 returns the projection matrix.
 
CSAD_API void * set (unsigned _int32, void *)
 used for any interface commands.
 
_FORCEINLINE void setClearColor (bool is)
 Specifies whether frame to have the background, the performance is better off.
 
CSAD_API CamerasetColor (float r, float g, float b, float w)
 Sets the color of the background, automatically includes the background.
 
CSAD_API CamerasetColor (vector4f &color)
 Sets the color of the background, automatically includes the background.
 
_FORCEINLINE void setCullFace (bool is)
 set true if need back of front face hide
 
CSAD_API CamerasetDepth (double val)
 Sets the value of the depth.
 
CSAD_API CamerasetFov (double _ov)
 Depending on the model projection sets the angle of view or the frame size.
 
_FORCEINLINE void setFrontFace (bool is)
 set true if need front face show
 
CSAD_API CamerasetMaxRange (double max)
 Specifies the far clipping plane.
 
CSAD_API CamerasetMinRange (double min)
 Specifies near clipping.
 
CSAD_API CamerasetProj (unsigned int proj)
 Sets the model projection of this promising (Camera::Perspective) or orthogonal (Camera::Ortographic)
 
CSAD_API CamerasetViewPort (vector4f *viewport)
 Sets the aspect ratio and position of the window in% from the actual size of the context.
 
- Public Member Functions inherited from csad::SceneComponent
template<typename T >
_FORCEINLINE T * addComponent ()
 Add component of the specified type in the container if this component already exists, returns available.
 
template<typename T >
_FORCEINLINE T * getComponent ()
 Returns the component of the given type, if it is not in a container returns 0.
 
CSAD_API TransformgetContainer ()
 Returns the container in which the component.
 
virtual CSAD_API void prepare ()
 The event is called during the preparation stage.
 
virtual CSAD_API void render ()
 The event is called during the rendering of the model.
 
virtual CSAD_API void select ()
 The event is called during handling of a choice of object - crossing with ray.
 
- Public Member Functions inherited from csad::Component
template<typename T >
_FORCEINLINE T * addComponent ()
 Add component of the specified type in the container if this component already exists, returns available.
 
template<typename T >
_FORCEINLINE T * getComponent ()
 Returns the component of the given type, if it is not in a container returns 0.
 
_FORCEINLINE ContainerComponentsgetContainer ()
 Returns the container in which the component.
 
template<typename T >
_FORCEINLINE T * getContainer ()
 Returns the container in which the component, if the container does not match the given type 0 is returned.
 
virtual CSAD_API void quit ()
 The event is called before the program exits.
 
virtual CSAD_API void start ()
 This event is fired after the program start.
 
virtual CSAD_API void update ()
 This event is fired before rendering environment container component.
 
- Public Member Functions inherited from csad::BaseObject
_FORCEINLINE bool isContainer ()
 returns true if the object is a container.
 
_FORCEINLINE ParametersListread (ParametersList *data)
 read attributes object.
 
_FORCEINLINE void * type ()
 the output pointer to the typeid() of the class.
 
_FORCEINLINE void write (ParametersList *data)
 record attributes of the object.
 

Static Public Member Functions

static CSAD_API Camerafinder (char *path)
 returns the camera in the specified path.
 

Additional Inherited Members

- Public Types inherited from csad::BaseObject
enum  BASE {
  ANY = 0x00000000, EVENT = 0x00000001, TYPE = 0x00000002, CONTAINER = 0x00000003,
  MANAGER_COUNT = 0x00000004, MANAGER = 0x00000005, WRITE = 0x00000006, READ = 0x00000007,
  SELECT = 0x00000008, RUN = 0x00000009, LIST = 0x0000000A, LIST_COUNT = 0x0000000B,
  NAME = 0x0000000C, CHILD_NAME = 0x0000000D
}
 the basic format of the interface More...
 

Detailed Description

Camera - component defines the projection matrix of points Transform into a point Target.

For description in the configuration:

  <Transform name="the name of the scene">
      <Camera fov="45" min="near plane" max="far plane" color="back color clean" depth="value for clean" cullface="" viewport="view rect"/>
  </Transform>
See Also
Transform, csad: scene