40 #ifndef _graphicscameraproxy_cpp
41 #define _graphicscameraproxy_cpp
47 #include "Graphics/cameramanager.h"
48 #include "Graphics/scenemanager.h"
50 #include "exception.h"
52 #include "stringtool.h"
84 return Ogre::PM_SOLID;
111 return Ogre::PT_PERSPECTIVE;
122 case Ogre::OR_DEGREE_0:
return Mezzanine::Graphics::OM_Degree_0;
break;
123 case Ogre::OR_DEGREE_90:
return Mezzanine::Graphics::OM_Degree_90;
break;
124 case Ogre::OR_DEGREE_180:
return Mezzanine::Graphics::OM_Degree_180;
break;
125 case Ogre::OR_DEGREE_270:
return Mezzanine::Graphics::OM_Degree_270;
break;
127 return Mezzanine::Graphics::OM_Degree_0;
137 case Mezzanine::Graphics::OM_Degree_0:
return Ogre::OR_DEGREE_0;
break;
138 case Mezzanine::Graphics::OM_Degree_90:
return Ogre::OR_DEGREE_90;
break;
139 case Mezzanine::Graphics::OM_Degree_180:
return Ogre::OR_DEGREE_180;
break;
140 case Mezzanine::Graphics::OM_Degree_270:
return Ogre::OR_DEGREE_270;
break;
142 return Ogre::OR_DEGREE_0;
153 GraphicsCamera(NULL),
161 GraphicsCamera(NULL),
176 this->
GraphicsCamera->MovableObject::setUserAny( Ogre::Any( static_cast<RenderableProxy*>(
this ) ) );
193 static UInt32 NameCounter = 0;
195 NameStream <<
"Camera" << ++NameCounter;
196 return NameStream.str();
203 {
return Mezzanine::PT_Graphics_CameraProxy; }
233 { this->
GraphicsCamera->setPolygonMode( ConvertPolygonMode(PolyMode) ); }
236 {
return ConvertPolygonMode( this->
GraphicsCamera->getPolygonMode() ); }
239 { this->
GraphicsCamera->setProjectionType( ConvertProjectionType(ProjType) ); }
242 {
return ConvertProjectionType( this->
GraphicsCamera->getProjectionType() ); }
245 { this->
GraphicsCamera->setOrientationMode( ConvertOrientationMode(OriMode) ); }
248 {
return ConvertOrientationMode( this->
GraphicsCamera->getOrientationMode() ); }
337 if( !PropertiesNode.
Empty() ) {
339 Boolean UseFixed =
true;
341 Real OrthoWidth = 0, OrthoHeight = 0;
344 if( !CurrAttrib.
Empty() )
347 CurrAttrib = PropertiesNode.
GetAttribute(
"PolygonMode");
348 if( !CurrAttrib.
Empty() )
351 CurrAttrib = PropertiesNode.
GetAttribute(
"ProjectionType");
352 if( !CurrAttrib.
Empty() )
355 CurrAttrib = PropertiesNode.
GetAttribute(
"OrientationMode");
356 if( !CurrAttrib.
Empty() )
360 if( !CurrAttrib.
Empty() )
361 OrthoWidth = CurrAttrib.
AsReal();
363 CurrAttrib = PropertiesNode.
GetAttribute(
"OrthoHeight");
364 if( !CurrAttrib.
Empty() )
365 OrthoHeight = CurrAttrib.
AsReal();
369 CurrAttrib = PropertiesNode.
GetAttribute(
"NearClipDistance");
370 if( !CurrAttrib.
Empty() )
373 CurrAttrib = PropertiesNode.
GetAttribute(
"FarClipDistance");
374 if( !CurrAttrib.
Empty() )
377 CurrAttrib = PropertiesNode.
GetAttribute(
"FieldOfView");
378 if( !CurrAttrib.
Empty() )
381 CurrAttrib = PropertiesNode.
GetAttribute(
"AspectRatio");
382 if( !CurrAttrib.
Empty() )
385 CurrAttrib = PropertiesNode.
GetAttribute(
"UseFixedYaw");
386 if( !CurrAttrib.
Empty() )
390 if( !FixedYawAxisNode.
Empty() ) {
407 {
return "CameraProxy"; }