proj home

Files   Classes   Functions   Hierarchy  

visoperator Class Reference

Interface for operators. More...

#include <visoperator.h>

Inheritance diagram for visoperator:
Collaboration diagram for visoperator:

List of all members.

Public Member Functions

virtual stringc id () const =0
 Operator name.
virtual void handlecommand (bool &matches, viscmd &c)=0
 matches is set to true if this operator recognises the command.

Static Public Member Functions

static void set (visenv &ve_)
 Initialize the environment setting.
static void set (vispointxml &vp_)
 Initialize point management.

Static Public Attributes

static visenvve = 0
 Access the global state.
static vispointxmlvp = 0
 Access graphics of adding a point.


Detailed Description

Interface for operators.

Processes commands.

Definition at line 18 of file visoperator.h.


Member Function Documentation

virtual void visoperator::handlecommand ( bool matches,
viscmd c 
) [pure virtual]

matches is set to true if this operator recognises the command.

Implemented in visconvex, visline, visdictionary, vispoint2, vispoint3, and vispointxml.

virtual stringc visoperator::id (  )  const [pure virtual]

Operator name.

Implemented in visconvex, visline, visdictionary, vispoint2, vispoint3, and vispointxml.

void visoperator::set ( vispointxml vp_  )  [static]

Initialize point management.

Definition at line 21 of file visoperator.cpp.

References vp.

00022 { 
00023   vp = & vp_; 
00024 }

void visoperator::set ( visenv ve_  )  [static]

Initialize the environment setting.

Definition at line 16 of file visoperator.cpp.

References ve.

Referenced by vispointxml::defaultsettings(), and visenv::defaultsettings().

00017 { 
00018   ve = & ve_; 
00019 }


Member Data Documentation

visenv * visoperator::ve = 0 [static]

vispointxml * visoperator::vp = 0 [static]

Access graphics of adding a point.

Definition at line 30 of file visoperator.h.

Referenced by vispointxml::handlecommand(), vispoint3::handlecommand(), vispoint2::handlecommand(), and set().


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

Generated on Fri Mar 4 00:50:24 2011 for Chelton Evans Source by  doxygen 1.5.8