Skyscraper 2.0
|
#include <cameratexture.h>
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 () |
![]() | |
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) |
Object * | GetChild (int index) |
int | GetChildrenCount () |
void | RemoveChild (Object *object) |
SceneNode * | GetSceneNode () |
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 () |
![]() | |
ObjectBase (Object *parent) | |
virtual | ~ObjectBase () |
Object * | GetParent () |
SBS * | GetRoot () |
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 | |
![]() | |
std::string | command |
std::string | command_processed |
std::string | context |
int | linenum |
std::string | includefile |
bool | parent_deleting |
![]() | |
void | EnableLoop (bool value) |
void | LoopChildren () |
bool | SelfDestruct () |
![]() | |
SBS * | sbs |
Definition at line 29 of file cameratexture.h.
SBS::CameraTexture::CameraTexture | ( | Object * | parent, |
const std::string & | name, | ||
int | quality, | ||
Real | fov, | ||
const Vector3 & | position, | ||
bool | use_rotation, | ||
const Vector3 & | rotation, | ||
bool | permanent = false ) |
Definition at line 46 of file cameratexture.cpp.
References SBS::SceneNode::AttachObject(), SBS::TextureManager::BindTextureToMaterial(), camera, SBS::TextureManager::CreateMaterial(), Enabled(), FOV, SBS::TextureManager::GetMaterialByName(), SBS::ObjectBase::GetName(), SBS::Object::GetSceneNode(), SBS::TextureManager::GetTextureByName(), SBS::SBS::GetTextureManager(), SBS::TextureManager::IncrementTextureCount(), SBS::SBS::InstanceNumber, SBS::SceneNode::LookAt(), SBS::Object::Move(), SBS::SBS::mSceneManager, ortho, SBS::SBS::RegisterCameraTexture(), SBS::TextureManager::RegisterTextureInfo(), renderTexture, SBS::ObjectBase::Report(), SBS::ObjectBase::ReportError(), SBS::ObjectBase::sbs, SetFOVAngle(), SBS::Object::SetRotation(), SBS::Object::SetValues(), texture, texturename, SBS::ToString(), and zoom.
SBS::CameraTexture::~CameraTexture | ( | ) |
Definition at line 128 of file cameratexture.cpp.
References camera, SBS::SceneNode::DetachObject(), SBS::SBS::FastDelete, SBS::ObjectBase::GetName(), SBS::ObjectBase::GetParent(), SBS::Object::GetSceneNode(), SBS::SBS::GetTextureManager(), SBS::Object::GetType(), SBS::SBS::mSceneManager, SBS::Object::parent_deleting, renderTexture, SBS::ObjectBase::sbs, texturename, SBS::TextureManager::UnloadMaterial(), SBS::TextureManager::UnloadTexture(), SBS::SBS::UnregisterCameraTexture(), and SBS::TextureManager::UnregisterTextureInfo().
|
virtual |
Reimplemented from SBS::Object.
Definition at line 162 of file cameratexture.cpp.
References renderTexture.
Referenced by CameraTexture(), SBS::Map::Enabled(), Skyscraper::CameraTextureControl::On_chkEnabled_Click(), and SBS::Action::Run().
void SBS::CameraTexture::EnableOrthographic | ( | bool | value | ) |
Definition at line 209 of file cameratexture.cpp.
Referenced by SBS::Map::Map().
Real SBS::CameraTexture::GetFOVAngle | ( | ) |
Definition at line 191 of file cameratexture.cpp.
References camera.
Referenced by Skyscraper::CameraTextureControl::Loop().
void SBS::CameraTexture::GetImage | ( | Ogre::Image & | image | ) |
Definition at line 222 of file cameratexture.cpp.
References texture.
Referenced by SBS::Map::GetImage().
Real SBS::CameraTexture::GetZoom | ( | ) |
Definition at line 253 of file cameratexture.cpp.
References zoom.
Referenced by Skyscraper::CameraTextureControl::Loop().
bool SBS::CameraTexture::IsEnabled | ( | ) |
Definition at line 168 of file cameratexture.cpp.
References renderTexture.
Referenced by Skyscraper::CameraTextureControl::Loop().
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().
void SBS::CameraTexture::SetFOVAngle | ( | Real | angle | ) |
Definition at line 176 of file cameratexture.cpp.
References camera.
Referenced by CameraTexture(), Skyscraper::CameraTextureControl::On_bSetFOV_Click(), and SetToDefaultFOV().
void SBS::CameraTexture::SetToDefaultFOV | ( | ) |
Definition at line 198 of file cameratexture.cpp.
References FOV, and SetFOVAngle().
void SBS::CameraTexture::SetZoom | ( | Real | value | ) |
Definition at line 230 of file cameratexture.cpp.
Referenced by Skyscraper::CameraTextureControl::On_bSetZoom_Click(), and Skyscraper::ScriptProcessor::CommandsSection::Run().
|
private |
Definition at line 52 of file cameratexture.h.
Referenced by CameraTexture(), EnableOrthographic(), GetFOVAngle(), SetFOVAngle(), SetZoom(), and ~CameraTexture().
|
private |
Definition at line 49 of file cameratexture.h.
Referenced by CameraTexture(), and SetToDefaultFOV().
|
private |
Definition at line 50 of file cameratexture.h.
Referenced by CameraTexture(), and EnableOrthographic().
|
private |
Definition at line 54 of file cameratexture.h.
Referenced by CameraTexture(), Enabled(), IsEnabled(), and ~CameraTexture().
|
private |
Definition at line 55 of file cameratexture.h.
Referenced by CameraTexture(), and GetImage().
|
private |
Definition at line 53 of file cameratexture.h.
Referenced by CameraTexture(), and ~CameraTexture().
|
private |
Definition at line 57 of file cameratexture.h.
Referenced by CameraTexture(), GetZoom(), and SetZoom().