tlp::GlLayer Class Reference#include <GlLayer.h>
Collaboration diagram for tlp::GlLayer:
[legend]List of all members.
Detailed Description
Layer class
Public Member Functions
Constructor & Destructor Documentation
tlp::GlLayer::GlLayer |
( |
const std::string & |
name, |
|
|
bool |
workingLayer = false |
|
) |
|
|
|
Layer constructor : construct a layer with his name |
tlp::GlLayer::GlLayer |
( |
const std::string & |
name, |
|
|
Camera * |
camera, |
|
|
bool |
workingLayer = false |
|
) |
|
|
|
Layer constructor : construct a layer with his name and use the camera : camera |
tlp::GlLayer::~GlLayer |
( |
|
) |
|
|
Member Function Documentation
|
function used by visitors to visit this layer |
void tlp::GlLayer::addGlEntity |
( |
GlSimpleEntity * |
entity, |
|
|
const std::string & |
name |
|
) |
|
|
void tlp::GlLayer::clear |
( |
|
) |
[inline] |
|
|
Remove all entities of the layer |
void tlp::GlLayer::deleteGlEntity |
( |
const std::string & |
key |
) |
|
|
|
Delete entity with name : key |
GlSimpleEntity* tlp::GlLayer::findGlEntity |
( |
const std::string & |
key |
) |
|
|
|
Return entity with name : key |
Camera* tlp::GlLayer::getCamera |
( |
|
) |
[inline] |
|
|
Return the layer's camera |
|
Return the map of layer's entities |
std::string tlp::GlLayer::getName |
( |
|
) |
[inline] |
|
GlScene* tlp::GlLayer::getScene |
( |
|
) |
[inline] |
|
|
Return the scene where the layer is |
void tlp::GlLayer::getXML |
( |
xmlNodePtr |
rootNode |
) |
|
|
|
Return the layer's data in XML |
bool tlp::GlLayer::isAWorkingLayer |
( |
|
) |
[inline] |
|
|
return if this layer is a working layer this property doesn't change the layer, but for example working layers are not displayed in LayerManagerWidget |
bool tlp::GlLayer::isVisible |
( |
|
) |
[inline] |
|
|
Return if the layer is visible |
void tlp::GlLayer::set2DMode |
( |
|
) |
[inline] |
|
|
Replace the layer's camera with a new 2D one |
void tlp::GlLayer::setCamera |
( |
const Camera & |
camera |
) |
[inline] |
|
void tlp::GlLayer::setCamera |
( |
Camera * |
camera |
) |
[inline] |
|
|
Set the layer's camera with a pointer to a camera |
void tlp::GlLayer::setScene |
( |
GlScene * |
scene |
) |
[inline] |
|
|
Set the scene where the layer is |
void tlp::GlLayer::setVisible |
( |
bool |
visible |
) |
[inline] |
|
|
Set if the layer is visible |
void tlp::GlLayer::setWithXML |
( |
xmlNodePtr |
rootNode |
) |
|
|
|
Set the layer's data with XML |
bool tlp::GlLayer::useSharedCamera |
( |
|
) |
[inline] |
|
|
return if this layer use a shared camera |
|