LCamera Class Reference

#include <OSG3DSLoader.h>

Inheritance diagram for LCamera:

LObject List of all members.

Public Member Functions

 LCamera ()
virtual ~LCamera ()
void Clear ()
void SetPosition (LVector3 vec)
LVector3 GetPosition ()
void SetTarget (LVector3 target)
LVector3 GetTarget ()
void SetFOV (float value)
float GetFOV ()
void SetBank (float value)
float GetBank ()
void SetNearplane (float value)
float GetNearplane ()
void SetFarplane (float value)
float GetFarplane ()
virtual const std::string & GetName ()
virtual void SetName (const std::string &value)
bool IsObject (const std::string &name)

Protected Attributes

LVector3 m_pos
LVector3 m_target
float m_bank
float m_fov
float m_near
float m_far
std::string m_name

Detailed Description

Definition at line 314 of file OSG3DSLoader.h.


Constructor & Destructor Documentation

LCamera::LCamera (  ) 

Definition at line 840 of file OSG3DSLoader.cpp.

References Clear().

00841 :   LObject()
00842 {
00843     Clear();
00844 }

LCamera::~LCamera (  )  [virtual]

Definition at line 846 of file OSG3DSLoader.cpp.

00847 {
00848 
00849 }


Member Function Documentation

void LCamera::Clear (  ) 

Definition at line 851 of file OSG3DSLoader.cpp.

References m_bank, m_far, m_fov, m_near, m_pos, m_target, LVector3::x, LVector3::y, and LVector3::z.

Referenced by LCamera().

00852 {
00853     m_pos.x = m_pos.y = m_pos.z = 0.0f;
00854     m_target.x = m_target.y = m_target.z = 0.0f;
00855     m_fov = 80;
00856     m_bank = 0;;
00857     m_near = 10;
00858     m_far = 10000;
00859 }

void LCamera::SetPosition ( LVector3  vec  ) 

Definition at line 861 of file OSG3DSLoader.cpp.

References m_pos.

Referenced by L3DS::ReadCamera().

00862 {
00863     m_pos = vec;
00864 }

LVector3 LCamera::GetPosition (  ) 

Definition at line 866 of file OSG3DSLoader.cpp.

References m_pos.

00867 {
00868     return m_pos;
00869 }

void LCamera::SetTarget ( LVector3  target  ) 

Definition at line 871 of file OSG3DSLoader.cpp.

References m_target.

Referenced by L3DS::ReadCamera().

00872 {
00873     m_target = target;
00874 }

LVector3 LCamera::GetTarget (  ) 

Definition at line 876 of file OSG3DSLoader.cpp.

References m_target.

00877 {
00878     return m_target;
00879 }

void LCamera::SetFOV ( float  value  ) 

Definition at line 881 of file OSG3DSLoader.cpp.

References m_fov.

Referenced by L3DS::ReadCamera().

00882 {
00883     m_fov = value;
00884 }

float LCamera::GetFOV (  ) 

Definition at line 886 of file OSG3DSLoader.cpp.

References m_fov.

00887 {
00888     return m_fov;
00889 }

void LCamera::SetBank ( float  value  ) 

Definition at line 891 of file OSG3DSLoader.cpp.

References m_bank.

Referenced by L3DS::ReadCamera().

00892 {
00893     m_bank = value;
00894 }

float LCamera::GetBank (  ) 

Definition at line 896 of file OSG3DSLoader.cpp.

References m_bank.

00897 {
00898     return m_bank;
00899 }

void LCamera::SetNearplane ( float  value  ) 

Definition at line 901 of file OSG3DSLoader.cpp.

References m_near.

Referenced by L3DS::ReadCamera().

00902 {
00903     m_near = value;
00904 }

float LCamera::GetNearplane (  ) 

Definition at line 906 of file OSG3DSLoader.cpp.

References m_near.

00907 {
00908     return m_near;
00909 }

void LCamera::SetFarplane ( float  value  ) 

Definition at line 911 of file OSG3DSLoader.cpp.

References m_far.

Referenced by L3DS::ReadCamera().

00912 {
00913     m_far = value;
00914 }

float LCamera::GetFarplane (  ) 

Definition at line 916 of file OSG3DSLoader.cpp.

References m_far.

00917 {
00918     return m_far;
00919 }

const std::string & LObject::GetName (  )  [virtual, inherited]

Definition at line 234 of file OSG3DSLoader.cpp.

References LObject::m_name.

Referenced by OSG::A3DSSceneFileType::createMesh().

00235 {
00236     return m_name;
00237 }

void LObject::SetName ( const std::string &  value  )  [virtual, inherited]

Definition at line 229 of file OSG3DSLoader.cpp.

References LObject::m_name.

Referenced by L3DS::ReadCamera(), L3DS::ReadLight(), L3DS::ReadMaterial(), and L3DS::ReadMesh().

00230 {
00231     m_name = value;
00232 }

bool LObject::IsObject ( const std::string &  name  )  [inherited]

Definition at line 239 of file OSG3DSLoader.cpp.

References LObject::m_name.

00240 {
00241     return (m_name == name);
00242 }


Member Data Documentation

LVector3 LCamera::m_pos [protected]

Definition at line 348 of file OSG3DSLoader.h.

Referenced by Clear(), GetPosition(), and SetPosition().

Definition at line 349 of file OSG3DSLoader.h.

Referenced by Clear(), GetTarget(), and SetTarget().

float LCamera::m_bank [protected]

Definition at line 350 of file OSG3DSLoader.h.

Referenced by Clear(), GetBank(), and SetBank().

float LCamera::m_fov [protected]

Definition at line 351 of file OSG3DSLoader.h.

Referenced by Clear(), GetFOV(), and SetFOV().

float LCamera::m_near [protected]

Definition at line 352 of file OSG3DSLoader.h.

Referenced by Clear(), GetNearplane(), and SetNearplane().

float LCamera::m_far [protected]

Definition at line 353 of file OSG3DSLoader.h.

Referenced by Clear(), GetFarplane(), and SetFarplane().

std::string LObject::m_name [protected, inherited]


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