Skyscraper 2.0
SBS::CameraTexture Class Reference

#include <cameratexture.h>

Inheritance diagram for SBS::CameraTexture:
Collaboration diagram for SBS::CameraTexture:

Public Member Functions

 CameraTexture (Object *parent, const std::string &name, int quality, Real fov, const Vector3 &position, bool use_rotation, const Vector3 &rotation, bool permanent=false)
 
 ~CameraTexture ()
 
void Enabled (bool value)
 
bool IsEnabled ()
 
void SetFOVAngle (Real angle)
 
Real GetFOVAngle ()
 
void SetToDefaultFOV ()
 
void LookAt (const Vector3 &position)
 
void EnableOrthographic (bool value)
 
void GetImage (Ogre::Image &image)
 
void SetZoom (Real value)
 
Real GetZoom ()
 
- Public Member Functions inherited from SBS::Object
 Object (Object *parent)
 
virtual ~Object ()
 
void SetValues (const std::string &type, const std::string &name, bool is_permanent, bool is_movable=true)
 
bool IsPermanent ()
 
bool IsMovable ()
 
const std::string & GetType ()
 
int GetNumber ()
 
void AddChild (Object *object)
 
ObjectGetChild (int index)
 
int GetChildrenCount ()
 
void RemoveChild (Object *object)
 
SceneNodeGetSceneNode ()
 
void ShowBoundingBox (bool value)
 
virtual void Move (const Vector3 &vector, Real speed=1.0)
 
virtual void Move (Real X, Real Y, Real Z, Real speed=1.0)
 
virtual void SetPosition (const Vector3 &position)
 
void SetPositionRelative (const Vector3 &position)
 
virtual void SetPosition (Real X, Real Y, Real Z)
 
void SetPositionRelative (Real X, Real Y, Real Z)
 
virtual void SetPositionY (Real value)
 
virtual Vector3 GetPosition (bool relative=false)
 
virtual void Rotate (const Vector3 &vector, Real speed=1.0)
 
virtual void Rotate (Real X, Real Y, Real Z, Real speed=1.0)
 
virtual void SetRotation (const Vector3 &rotation)
 
virtual void SetRotation (Real X, Real Y, Real Z)
 
virtual Vector3 GetRotation ()
 
Quaternion GetOrientation (bool relative=false)
 
void SetOrientation (const Quaternion &q, bool relative=false)
 
virtual void OnMove (bool parent)
 
virtual void OnRotate (bool parent)
 
virtual void OnClick (Vector3 &position, bool shift, bool ctrl, bool alt, bool right)
 
virtual void OnUnclick (bool right)
 
virtual void OnHit ()
 
void NotifyMove (bool parent=false)
 
void NotifyRotate (bool parent=false)
 
virtual void ResetState ()
 
void ChangeParent (Object *new_parent)
 
bool IsGlobal ()
 
void Init (bool children=true)
 
virtual void OnInit ()
 
virtual void Loop ()
 
void RegisterLoop (Object *object)
 
void UnregisterLoop (Object *object)
 
std::string GetNameBase ()
 
template<typename T >
bool IsType ()
 
template<typename T >
T * ConvertTo ()
 
- Public Member Functions inherited from SBS::ObjectBase
 ObjectBase (Object *parent)
 
virtual ~ObjectBase ()
 
ObjectGetParent ()
 
SBSGetRoot ()
 
void SetName (const std::string &name)
 
const std::string & GetName ()
 
std::string GetNameBase ()
 
virtual void Report (const std::string &message)
 
virtual bool ReportError (const std::string &message)
 

Private Attributes

float FOV
 
bool ortho
 
Ogre::Camera * camera
 
std::string texturename
 
Ogre::RenderTexture * renderTexture
 
Ogre::TexturePtr texture
 
Real zoom
 

Additional Inherited Members

- Public Attributes inherited from SBS::Object
std::string command
 
std::string command_processed
 
std::string context
 
int linenum
 
std::string includefile
 
bool parent_deleting
 
- Protected Member Functions inherited from SBS::Object
void EnableLoop (bool value)
 
void LoopChildren ()
 
bool SelfDestruct ()
 
- Protected Attributes inherited from SBS::ObjectBase
SBSsbs
 

Detailed Description

Definition at line 29 of file cameratexture.h.

Constructor & Destructor Documentation

◆ CameraTexture()

◆ ~CameraTexture()

Member Function Documentation

◆ Enabled()

void SBS::CameraTexture::Enabled ( bool value)
virtual

◆ EnableOrthographic()

void SBS::CameraTexture::EnableOrthographic ( bool value)

Definition at line 209 of file cameratexture.cpp.

References camera, and ortho.

Referenced by SBS::Map::Map().

◆ GetFOVAngle()

Real SBS::CameraTexture::GetFOVAngle ( )

Definition at line 191 of file cameratexture.cpp.

References camera.

Referenced by Skyscraper::CameraTextureControl::Loop().

◆ GetImage()

void SBS::CameraTexture::GetImage ( Ogre::Image & image)

Definition at line 222 of file cameratexture.cpp.

References texture.

Referenced by SBS::Map::GetImage().

◆ GetZoom()

Real SBS::CameraTexture::GetZoom ( )

Definition at line 253 of file cameratexture.cpp.

References zoom.

Referenced by Skyscraper::CameraTextureControl::Loop().

◆ IsEnabled()

bool SBS::CameraTexture::IsEnabled ( )

Definition at line 168 of file cameratexture.cpp.

References renderTexture.

Referenced by Skyscraper::CameraTextureControl::Loop().

◆ LookAt()

void SBS::CameraTexture::LookAt ( const Vector3 & position)

Definition at line 204 of file cameratexture.cpp.

References SBS::Object::GetSceneNode(), and SBS::SceneNode::LookAt().

Referenced by Skyscraper::CameraTextureControl::On_bSetLookAt_Click().

Here is the call graph for this function:

◆ SetFOVAngle()

void SBS::CameraTexture::SetFOVAngle ( Real angle)

◆ SetToDefaultFOV()

void SBS::CameraTexture::SetToDefaultFOV ( )

Definition at line 198 of file cameratexture.cpp.

References FOV, and SetFOVAngle().

Here is the call graph for this function:

◆ SetZoom()

void SBS::CameraTexture::SetZoom ( Real value)

Member Data Documentation

◆ camera

Ogre::Camera* SBS::CameraTexture::camera
private

◆ FOV

float SBS::CameraTexture::FOV
private

Definition at line 49 of file cameratexture.h.

Referenced by CameraTexture(), and SetToDefaultFOV().

◆ ortho

bool SBS::CameraTexture::ortho
private

Definition at line 50 of file cameratexture.h.

Referenced by CameraTexture(), and EnableOrthographic().

◆ renderTexture

Ogre::RenderTexture* SBS::CameraTexture::renderTexture
private

Definition at line 54 of file cameratexture.h.

Referenced by CameraTexture(), Enabled(), IsEnabled(), and ~CameraTexture().

◆ texture

Ogre::TexturePtr SBS::CameraTexture::texture
private

Definition at line 55 of file cameratexture.h.

Referenced by CameraTexture(), and GetImage().

◆ texturename

std::string SBS::CameraTexture::texturename
private

Definition at line 53 of file cameratexture.h.

Referenced by CameraTexture(), and ~CameraTexture().

◆ zoom

Real SBS::CameraTexture::zoom
private

Definition at line 57 of file cameratexture.h.

Referenced by CameraTexture(), GetZoom(), and SetZoom().


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