7 #ifndef CAFU_MAP_ENTITY_REPRES_HPP_INCLUDED
8 #define CAFU_MAP_ENTITY_REPRES_HPP_INCLUDED
10 #include "MapElement.hpp"
11 #include "Templates/Pointer.hpp"
14 namespace cf {
namespace GameSys {
class EntityT; } }
28 wxColour
GetColor(
bool ConsiderGroup=
true)
const;
29 wxString GetDescription()
const;
44 void TrafoMirror(
unsigned int NormalAxis,
float Dist,
bool LockTexCoords)
override;
59 bool IsPlayerPrototypeChild()
const;
This class provides auxiliary means for rendering a 3D view.
Definition: Renderer3D.hpp:30
This class implements the rendering into a 2D view.
Definition: Renderer2D.hpp:22
wxColour GetColor(bool ConsiderGroup=true) const
This method returns the "inherent" color of this map element.
Definition: MapEntRepres.cpp:46
bool TraceRay(const Vector3fT &RayOrigin, const Vector3fT &RayDir, float &Fraction, unsigned long &FaceNr) const
Traces a ray against this map element, and returns whether it was hit.
Definition: MapEntRepres.cpp:203
bool IsTranslucent() const
Returns whether this map element is (entirely or partially) translucent.
Definition: MapEntRepres.cpp:172
TrafoMementoT * GetTrafoState() const override
Returns a memento that encapsulates the transform-related state of this element.
Definition: MapEntRepres.cpp:269
void TrafoMove(const Vector3fT &Delta, bool LockTexCoords) override
Translates this element by the given vector (in world-space).
Definition: MapEntRepres.cpp:336
An instance of this class encapsulates the transform-related state of a MapElementT.
Definition: MapElement.hpp:39
void TrafoRotate(const Vector3fT &RefPoint, const cf::math::AnglesfT &Angles, bool LockTexCoords) override
Rotates this element about the given reference point (in world-space).
Definition: MapEntRepres.cpp:347
void TrafoMirror(unsigned int NormalAxis, float Dist, bool LockTexCoords) override
Mirrors this element along the given mirror plane (in world-space).
Definition: MapEntRepres.cpp:384
MapEntRepresT(MapEditor::CompMapEntityT *Parent)
The constructor.
Definition: MapEntRepres.cpp:38
BoundingBox3fT GetBB() const
Returns the spatial bounding-box of this map element.
Definition: MapEntRepres.cpp:178
void RestoreTrafoState(const TrafoMementoT *TM) override
Restores the transform-related state of this element from the given memento.
Definition: MapEntRepres.cpp:275
Definition: ChildFrameViewWin2D.hpp:24
This class provides a graphical representation of an entity in the Map Editor.
Definition: MapEntRepres.hpp:20
void Transform(const Matrix4x4fT &Matrix, bool LockTexCoords) override
Why does this method not replace all the other Trafo*() methods? This method is the most generic...
Definition: MapEntRepres.cpp:397
bool TracePixel(const wxPoint &Pixel, int Radius, const ViewWindow2DT &ViewWin) const
This method determines if this map element is intersected/affected by the specified disc in ViewWin...
Definition: MapEntRepres.cpp:213
This component houses the Map Editor specific parts of its entity.
Definition: CompMapEntity.hpp:30
void TrafoScale(const Vector3fT &RefPoint, const Vector3fT &Scale, bool LockTexCoords) override
Scales this element about the given reference point (in world-space).
Definition: MapEntRepres.cpp:373
Definition: TypeSys.hpp:52
This class keeps type information (about an entity class that occurs in the game).
Definition: TypeSys.hpp:79
This is the base class for all elements ("objects") that can exist in a map.
Definition: MapElement.hpp:57