FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
#include <renderernode.h>
Public Member Functions | |
RendererNode (Instance *attached_instance, const Location &relative_location, Layer *relative_layer, const Point &relative_point=Point(0, 0)) | |
RendererNode (Instance *attached_instance, const Location &relative_location, const Point &relative_point=Point(0, 0)) | |
RendererNode (Instance *attached_instance, Layer *relative_layer, const Point &relative_point=Point(0, 0)) | |
RendererNode (Instance *attached_instance, const Point &relative_point=Point(0, 0)) | |
RendererNode (const Location &attached_location, Layer *relative_layer, const Point &relative_point=Point(0, 0)) | |
RendererNode (const Location &attached_location, const Point &relative_point=Point(0, 0)) | |
RendererNode (Layer *attached_layer, const Point &relative_point=Point(0, 0)) | |
RendererNode (const Point &attached_point) | |
RendererNode (const RendererNode &old) | |
RendererNode & | operator= (const RendererNode &source) |
~RendererNode () | |
void | setAttached (Instance *attached_instance, const Location &relative_location, const Point &relative_point) |
void | setAttached (Instance *attached_instance, const Location &relative_location) |
void | setAttached (Instance *attached_instance, const Point &relative_point) |
void | setAttached (Instance *attached_instance) |
void | setAttached (const Location &attached_location, const Point &relative_point) |
void | setAttached (const Location &attached_location) |
void | setAttached (Layer *attached_layer) |
void | setAttached (const Point &attached_point) |
void | setRelative (const Location &relative_location) |
void | setRelative (const Location &relative_location, Point relative_point) |
void | setRelative (const Point &relative_point) |
Instance * | getAttachedInstance () |
Location | getAttachedLocation () |
Layer * | getAttachedLayer () |
Point | getAttachedPoint () |
Location | getOffsetLocation () |
Point | getOffsetPoint () |
Instance * | getInstance () |
Location | getLocation () |
const Location & | getLocationRef () |
Layer * | getLayer () |
Point | getPoint () |
const Point & | getPointRef () |
void | addInstance (Instance *instance) |
void | changeInstance (Instance *instance) |
void | removeInstance (Instance *instance, bool listener=true) |
Point | getCalculatedPoint (Camera *cam, Layer *layer, const bool zoomed=false) |
Private Member Functions | |
void | checkDeleteListener () |
Private Attributes | |
Instance * | m_instance |
Location | m_location |
Layer * | m_layer |
Point | m_point |
InstanceDeleteListener * | m_listener |
Definition at line 39 of file renderernode.h.
FIFE::RendererNode::RendererNode | ( | Instance * | attached_instance, |
const Location & | relative_location, | ||
Layer * | relative_layer, | ||
const Point & | relative_point = Point(0,0) |
||
) |
Definition at line 59 of file renderernode.cpp.
References addInstance().
FIFE::RendererNode::RendererNode | ( | Instance * | attached_instance, |
const Location & | relative_location, | ||
const Point & | relative_point = Point(0,0) |
||
) |
Definition at line 67 of file renderernode.cpp.
References addInstance().
FIFE::RendererNode::RendererNode | ( | Instance * | attached_instance, |
Layer * | relative_layer, | ||
const Point & | relative_point = Point(0,0) |
||
) |
Definition at line 75 of file renderernode.cpp.
References addInstance().
FIFE::RendererNode::RendererNode | ( | Instance * | attached_instance, |
const Point & | relative_point = Point(0,0) |
||
) |
Definition at line 83 of file renderernode.cpp.
References addInstance().
FIFE::RendererNode::RendererNode | ( | const Location & | attached_location, |
Layer * | relative_layer, | ||
const Point & | relative_point = Point(0,0) |
||
) |
Definition at line 91 of file renderernode.cpp.
FIFE::RendererNode::RendererNode | ( | const Location & | attached_location, |
const Point & | relative_point = Point(0,0) |
||
) |
Definition at line 98 of file renderernode.cpp.
FIFE::RendererNode::RendererNode | ( | Layer * | attached_layer, |
const Point & | relative_point = Point(0,0) |
||
) |
Definition at line 105 of file renderernode.cpp.
FIFE::RendererNode::RendererNode | ( | const Point & | attached_point | ) |
Definition at line 112 of file renderernode.cpp.
FIFE::RendererNode::RendererNode | ( | const RendererNode & | old | ) |
Definition at line 119 of file renderernode.cpp.
References addInstance(), and m_instance.
FIFE::RendererNode::~RendererNode | ( | ) |
Definition at line 136 of file renderernode.cpp.
References m_instance, m_listener, and removeInstance().
void FIFE::RendererNode::addInstance | ( | Instance * | instance | ) |
Definition at line 252 of file renderernode.cpp.
References FIFE::Instance::addDeleteListener(), checkDeleteListener(), m_instance, and m_listener.
Referenced by RendererNode().
void FIFE::RendererNode::changeInstance | ( | Instance * | instance | ) |
Definition at line 260 of file renderernode.cpp.
References FIFE::Instance::addDeleteListener(), checkDeleteListener(), m_instance, m_listener, and FIFE::Instance::removeDeleteListener().
Referenced by operator=(), and setAttached().
|
private |
Definition at line 283 of file renderernode.cpp.
References m_listener.
Referenced by addInstance(), and changeInstance().
Instance * FIFE::RendererNode::getAttachedInstance | ( | ) |
Definition at line 195 of file renderernode.cpp.
References FIFE::_log, FL_WARN, and m_instance.
Layer * FIFE::RendererNode::getAttachedLayer | ( | ) |
Definition at line 207 of file renderernode.cpp.
References FIFE::_log, FL_WARN, and m_layer.
Location FIFE::RendererNode::getAttachedLocation | ( | ) |
Definition at line 201 of file renderernode.cpp.
References FIFE::_log, FL_WARN, m_instance, and m_location.
Point FIFE::RendererNode::getAttachedPoint | ( | ) |
Definition at line 213 of file renderernode.cpp.
References FIFE::_log, FL_WARN, m_instance, m_location, and m_point.
Point FIFE::RendererNode::getCalculatedPoint | ( | Camera * | cam, |
Layer * | layer, | ||
const bool | zoomed = false |
||
) |
Definition at line 290 of file renderernode.cpp.
References FIFE::_log, FL_WARN, FIFE::Location::getLayer(), FIFE::Instance::getLocationRef(), FIFE::Location::getMapCoordinates(), FIFE::Camera::getZoom(), m_instance, m_layer, m_location, m_point, setAttached(), FIFE::Camera::toScreenCoordinates(), FIFE::PointType2D< T >::x, FIFE::PointType3D< T >::x, FIFE::PointType2D< T >::y, and FIFE::PointType3D< T >::y.
Referenced by FIFE::GenericRendererLineInfo::render(), FIFE::GenericRendererPointInfo::render(), FIFE::GenericRendererTriangleInfo::render(), FIFE::LightRendererImageInfo::render(), FIFE::GenericRendererQuadInfo::render(), FIFE::LightRendererAnimationInfo::render(), FIFE::GenericRendererVertexInfo::render(), FIFE::LightRendererSimpleLightInfo::render(), FIFE::GenericRendererImageInfo::render(), FIFE::GenericRendererAnimationInfo::render(), FIFE::LightRendererResizeInfo::render(), FIFE::GenericRendererTextInfo::render(), and FIFE::GenericRendererResizeInfo::render().
Instance * FIFE::RendererNode::getInstance | ( | ) |
Definition at line 233 of file renderernode.cpp.
References m_instance.
Layer * FIFE::RendererNode::getLayer | ( | ) |
Definition at line 242 of file renderernode.cpp.
References m_layer.
Referenced by FIFE::GenericRendererLineInfo::render(), FIFE::GenericRendererPointInfo::render(), FIFE::GenericRendererTriangleInfo::render(), FIFE::LightRendererImageInfo::render(), FIFE::GenericRendererQuadInfo::render(), FIFE::LightRendererAnimationInfo::render(), FIFE::GenericRendererVertexInfo::render(), FIFE::LightRendererSimpleLightInfo::render(), FIFE::GenericRendererImageInfo::render(), FIFE::GenericRendererAnimationInfo::render(), FIFE::LightRendererResizeInfo::render(), FIFE::GenericRendererTextInfo::render(), and FIFE::GenericRendererResizeInfo::render().
Location FIFE::RendererNode::getLocation | ( | ) |
Definition at line 236 of file renderernode.cpp.
References m_location.
const Location & FIFE::RendererNode::getLocationRef | ( | ) |
Definition at line 239 of file renderernode.cpp.
References m_location.
Location FIFE::RendererNode::getOffsetLocation | ( | ) |
Definition at line 220 of file renderernode.cpp.
References FIFE::_log, FL_WARN, m_instance, and m_location.
Point FIFE::RendererNode::getOffsetPoint | ( | ) |
Definition at line 226 of file renderernode.cpp.
References FIFE::_log, FL_WARN, m_instance, m_location, and m_point.
Point FIFE::RendererNode::getPoint | ( | ) |
Definition at line 245 of file renderernode.cpp.
References m_point.
const Point & FIFE::RendererNode::getPointRef | ( | ) |
Definition at line 248 of file renderernode.cpp.
References m_point.
RendererNode & FIFE::RendererNode::operator= | ( | const RendererNode & | source | ) |
Definition at line 127 of file renderernode.cpp.
References changeInstance(), m_instance, m_layer, m_location, and m_point.
void FIFE::RendererNode::removeInstance | ( | Instance * | instance, |
bool | listener = true |
||
) |
Definition at line 274 of file renderernode.cpp.
References m_instance, m_listener, and FIFE::Instance::removeDeleteListener().
Referenced by FIFE::NodeInstanceDeleteListener::onInstanceDeleted(), and ~RendererNode().
void FIFE::RendererNode::setAttached | ( | Instance * | attached_instance, |
const Location & | relative_location, | ||
const Point & | relative_point | ||
) |
Definition at line 141 of file renderernode.cpp.
References changeInstance(), m_location, and m_point.
Referenced by getCalculatedPoint().
void FIFE::RendererNode::setAttached | ( | Instance * | attached_instance, |
const Location & | relative_location | ||
) |
Definition at line 146 of file renderernode.cpp.
References changeInstance(), and m_location.
Definition at line 150 of file renderernode.cpp.
References changeInstance(), and m_point.
void FIFE::RendererNode::setAttached | ( | Instance * | attached_instance | ) |
Definition at line 154 of file renderernode.cpp.
References changeInstance().
void FIFE::RendererNode::setAttached | ( | const Location & | attached_location, |
const Point & | relative_point | ||
) |
Definition at line 157 of file renderernode.cpp.
References changeInstance(), m_location, and m_point.
void FIFE::RendererNode::setAttached | ( | const Location & | attached_location | ) |
Definition at line 162 of file renderernode.cpp.
References changeInstance(), and m_location.
void FIFE::RendererNode::setAttached | ( | Layer * | attached_layer | ) |
Definition at line 166 of file renderernode.cpp.
References m_layer.
void FIFE::RendererNode::setAttached | ( | const Point & | attached_point | ) |
Definition at line 169 of file renderernode.cpp.
References changeInstance(), m_location, and m_point.
void FIFE::RendererNode::setRelative | ( | const Location & | relative_location | ) |
Definition at line 175 of file renderernode.cpp.
References FIFE::_log, FL_WARN, m_instance, and m_location.
Definition at line 181 of file renderernode.cpp.
References FIFE::_log, FL_WARN, m_instance, m_location, and m_point.
void FIFE::RendererNode::setRelative | ( | const Point & | relative_point | ) |
Definition at line 188 of file renderernode.cpp.
References FIFE::_log, FL_WARN, m_instance, m_location, and m_point.
|
private |
Definition at line 89 of file renderernode.h.
Referenced by addInstance(), changeInstance(), getAttachedInstance(), getAttachedLocation(), getAttachedPoint(), getCalculatedPoint(), getInstance(), getOffsetLocation(), getOffsetPoint(), operator=(), removeInstance(), RendererNode(), setRelative(), and ~RendererNode().
|
private |
Definition at line 91 of file renderernode.h.
Referenced by getAttachedLayer(), getCalculatedPoint(), getLayer(), operator=(), and setAttached().
|
private |
Definition at line 93 of file renderernode.h.
Referenced by addInstance(), changeInstance(), checkDeleteListener(), removeInstance(), and ~RendererNode().
|
private |
Definition at line 90 of file renderernode.h.
Referenced by getAttachedLocation(), getAttachedPoint(), getCalculatedPoint(), getLocation(), getLocationRef(), getOffsetLocation(), getOffsetPoint(), operator=(), setAttached(), and setRelative().
|
private |
Definition at line 92 of file renderernode.h.
Referenced by getAttachedPoint(), getCalculatedPoint(), getOffsetPoint(), getPoint(), getPointRef(), operator=(), setAttached(), and setRelative().