#include <Selector.h>
List of all members.
Public Types |
enum | SELECT_MODE { SELECT_REMOVE = -1,
SELECT_REPLACE = 0,
SELECT_APPEND = 1
} |
enum | TYPE {
OTHER,
SOLID,
SPRITE,
BOLT,
QUAD
} |
enum | RENDER_FLAGS {
RENDER_SOLID = 0x0001,
RENDER_ALPHA = 0x0002,
RENDER_ADDITIVE = 0x0004,
RENDER_FIRST_LIGHT = 0x1000,
RENDER_ADD_LIGHT = 0x2000
} |
Public Member Functions |
| Selector (Selection *s=0) |
virtual | ~Selector () |
virtual void | Render (Video *video, DWORD flags) |
virtual bool | CheckVisibility (Projector &projector) |
void | Clear () |
void | Begin (Model *m, int mode, int select_mode=SELECT_REPLACE) |
void | AddMark (CPoint &p) |
void | End () |
bool | IsActive () const |
int | GetViewMode () const |
Selection * | GetSelection () const |
void | UseModel (Model *m) |
void | SelectAll (int select_mode=SELECT_REPLACE) |
void | SelectInverse () |
void | SelectSurface (Surface *s, int select_mode=SELECT_REPLACE) |
void | SelectVert (Surface *s, int v, int select_mode=SELECT_REPLACE) |
void | SelectPoly (Poly *p, int select_mode=SELECT_REPLACE) |
void | SelectMaterial (Material *m, int select_mode=SELECT_REPLACE) |
void | Reselect () |
| Graphic () |
virtual | ~Graphic () |
int | operator== (const Graphic &g) const |
int | operator< (const Graphic &g) const |
int | operator<= (const Graphic &g) const |
virtual void | Update () |
virtual void | SetOrientation (const Matrix &o) |
virtual int | CollidesWith (Graphic &o) |
int | Identity () const |
const char * | Name () const |
bool | IsVisible () const |
void | SetVisible (bool v) |
float | Radius () const |
Point | Location () const |
virtual void | MoveTo (const Point &p) |
virtual void | TranslateBy (const Point &ref) |
virtual float | Depth () const |
virtual void | SetDepth (float d) |
virtual int | IsInfinite () const |
virtual void | SetInfinite (bool b) |
virtual int | IsForeground () const |
virtual void | SetForeground (bool f) |
virtual int | IsBackground () const |
virtual void | SetBackground (bool b) |
virtual int | Hidden () const |
virtual int | Life () const |
virtual void | Destroy () |
virtual void | Hide () |
virtual void | Show () |
virtual bool | Luminous () const |
virtual void | SetLuminous (bool l) |
virtual bool | Translucent () const |
virtual bool | CastsShadow () const |
virtual void | SetShadow (bool s) |
virtual bool | IsSolid () const |
virtual bool | IsSprite () const |
virtual bool | IsBolt () const |
virtual bool | IsQuad () const |
virtual void | ProjectScreenRect (Projector *p) |
const Rect & | ScreenRect () const |
virtual Scene * | GetScene () const |
virtual void | SetScene (Scene *s) |
virtual int | CheckRayIntersection (Point pt, Point vpn, double len, Point &ipt, bool treat_translucent_polys_as_solid=true) |
Protected Types |
enum | { MAX_MARK = 4096
} |
Detailed Description
Definition at line 29 of file Selector.h.
Member Enumeration Documentation
- Enumerator:
SELECT_REMOVE |
|
SELECT_REPLACE |
|
SELECT_APPEND |
|
Definition at line 35 of file Selector.h.
Constructor & Destructor Documentation
Member Function Documentation
void Selector::AddMark |
( |
CPoint & |
p | ) |
|
virtual bool Selector::CheckVisibility |
( |
Projector & |
projector | ) |
|
|
inlinevirtual |
int Selector::GetViewMode |
( |
| ) |
const |
|
inline |
bool Selector::IsActive |
( |
| ) |
const |
|
inline |
void Selector::Render |
( |
Video * |
video, |
|
|
DWORD |
flags |
|
) |
| |
|
virtual |
void Selector::Reselect |
( |
| ) |
|
void Selector::SelectInverse |
( |
| ) |
|
void Selector::UseModel |
( |
Model * |
m | ) |
|
Member Data Documentation
bool Selector::own_selection |
|
protected |
int Selector::select_mode |
|
protected |
The documentation for this class was generated from the following files: