SO3Engine
|
SO3Lines.cpp
Go to the documentation of this file.
10SLines::SLines(const Ogre::ColourValue& defaultColour, bool dashed, bool disableDepth) : SimpleRenderable()
25 Ogre::StringVector resourceGroups = Ogre::ResourceGroupManager::getSingletonPtr()->getResourceGroups();
26 if(std::find(resourceGroups.begin(), resourceGroups.end(), SO3_INTERNAL_RESOURCE_GROUP) == resourceGroups.end())
29 Ogre::MaterialPtr autocolour = Ogre::MaterialManager::getSingleton().create(std::string(SO3_INTERNAL_RESOURCE_GROUP)+"/LineAuto", SO3_INTERNAL_RESOURCE_GROUP);
35 Ogre::MaterialPtr autocolournodepth = Ogre::MaterialManager::getSingleton().create(std::string(SO3_INTERNAL_RESOURCE_GROUP) + "/LineAutoNoDepth", SO3_INTERNAL_RESOURCE_GROUP);
91void SLines::AddLine(const Ogre::Real& start_x, const Ogre::Real& start_y, const Ogre::Real& start_z, const Ogre::Real& end_x, const Ogre::Real& end_y, const Ogre::Real& end_z)
107 SO3_EXCEPT(SExceptionOutOfBound, "Index out of bound, no such point!", "SLines::AddPoint", true);
110void SLines::AddPoint(const size_t& pointIndex, const Ogre::Real& x, const Ogre::Real& y, const Ogre::Real& z)
134 SO3_EXCEPT(SExceptionOutOfBound, "Index out of bound, no such point!", "SLines::RemovePoint", true);
150 SO3_EXCEPT(SExceptionOutOfBound, "Index out of bound, no such point!", "SLines::GetPoint", true);
163 SO3_EXCEPT(SExceptionOutOfBound, "Index out of bound, no such point!", "SLines::SetPoint", true);
166void SLines::SetPoint(const size_t& pointIndex, const Ogre::Real& x, const Ogre::Real& y, const Ogre::Real& z)
SException indicating that an attempt to get a tab element with a given index out of bound.
Definition SO3Exception.h:315
SLines(const Ogre::ColourValue &defaultColour=Ogre::ColourValue::White, bool dashed=false, bool disableDepth=false)
Definition SO3Lines.cpp:10
void SetPoint(const size_t &pointIndex, const Ogre::Vector3 &pt)
Definition SO3Lines.cpp:155
void AddLine(const Ogre::Vector3 &start, const Ogre::Vector3 &end)
Definition SO3Lines.cpp:83
void AddPoint(const size_t &pointIndex, const Ogre::Vector3 &pt)
Definition SO3Lines.cpp:96
virtual Ogre::Real getBoundingRadius() const
Definition SO3Lines.cpp:318
virtual Ogre::Real getSquaredViewDepth(const Ogre::Camera *cam) const
Definition SO3Lines.cpp:307
Definition SO3DataScol.h:38
Generated by 1.9.8