proj home

Files   Classes   Functions   Hierarchy  

gobjglColor3f Class Reference

#include <gobj.h>

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

List of all members.

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 Attributes

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

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.

00091     : 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().

00236 {
00237   asserteval(serializeInverse(arg));
00238 }


Member Function Documentation

void gobjglColor3f::draw (  )  [inline, virtual]

Draw the object.

Implements gobj.

Definition at line 103 of file gobj.h.

References GOBJDEBUGCODE, x, y, and z.

Referenced by tessD2draw02mesh< TESS, PT, INDX >::draw().

00104     { 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().

00219 {
00220   tokenizer ss(arg);
00221   ss.tokenize();
00222   if (ss.seq.size()!=3)
00223     return false;
00224 
00225   ss.reset();
00226   stringfrom(x,ss());
00227   ++ss;
00228   stringfrom(y,ss());
00229   ++ss;
00230   stringfrom(z,ss());
00231 
00232   return true;
00233 }


Member Data Documentation

The x coordinate.

Definition at line 79 of file gobj.h.

Referenced by draw(), and serializeInverse().

The y coordinate.

Definition at line 81 of file gobj.h.

Referenced by draw(), and serializeInverse().

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:

Generated on 27 Nov 2012 for Chelton Evans Source by  doxygen 1.6.1