proj home

Files   Classes   Functions   Hierarchy  

Public Member Functions | Public Attributes | List of all members
gobjglColor3f Class Reference

#include <gobj.h>

Inheritance diagram for gobjglColor3f:
Inheritance graph
Collaboration diagram for gobjglColor3f:
Collaboration graph

Public Member Functions

 gobjglColor3f (floatc x_, floatc y_, floatc z_)
 gobjglColor3f (stringc &arg)
 Construct from string.
boolc serializeInverse (stringc &arg)
 Construct from string.
void draw ()
 Draw the object.
- Public Member Functions inherited from gobj
virtual ~gobj ()
 Destructor.

Public Attributes

float x
 The x coordinate.
float y
 The y coordinate.
float z
 The z coordinate.

Additional Inherited Members

- Static Public Member Functions inherited from gobj
static void globaldisplaylist (uintc id)
 Convert the global graphics into a display list.
- Static Public Attributes inherited from gobj
static gobjContainerglobal = 0
 The graphics stream.

Detailed Description

Definition at line 73 of file gobj.h.

Constructor & Destructor Documentation

gobjglColor3f::gobjglColor3f ( floatc  x_,
floatc  y_,
floatc  z_ 
)
inline

Definition at line 86 of file gobj.h.

: x(x_), y(y_), z(z_) {}
gobjglColor3f::gobjglColor3f ( stringc arg)

Construct from string.

Definition at line 235 of file gobj.cpp.

References asserteval, and serializeInverse().

Member Function Documentation

void gobjglColor3f::draw ( )
inlinevirtual

Draw the object.

Implements gobj.

Definition at line 103 of file gobj.h.

References GOBJDEBUGCODE, x, y, and z.

{ GOBJDEBUGCODE glColor3f(x,y,z); }
boolc gobjglColor3f::serializeInverse ( stringc arg)

Construct from string.

Definition at line 218 of file gobj.cpp.

References tokenizer::reset(), tokenizer::seq, stringfrom(), tokenizer::tokenize(), x, y, and z.

Referenced by gobjglColor3f().

{
tokenizer ss(arg);
ss.tokenize();
if (ss.seq.size()!=3)
return false;
ss.reset();
stringfrom(x,ss());
++ss;
stringfrom(y,ss());
++ss;
stringfrom(z,ss());
return true;
}

Member Data Documentation

float gobjglColor3f::x

The x coordinate.

Definition at line 79 of file gobj.h.

Referenced by draw(), and serializeInverse().

float gobjglColor3f::y

The y coordinate.

Definition at line 81 of file gobj.h.

Referenced by draw(), and serializeInverse().

float gobjglColor3f::z

The z coordinate.

Definition at line 83 of file gobj.h.

Referenced by draw(), and serializeInverse().


The documentation for this class was generated from the following files: