Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XYSlice Class Reference

#include <xysl.h>

Inheritance diagram for XYSlice:

Inheritance graph
[legend]
Collaboration diagram for XYSlice:

Collaboration graph
[legend]
List of all members.

Public Methods

 XYSlice (const XYAxis *axis, double begin, double end, xybool visible=xytrue)
virtual ~XYSlice (void)
virtual void beginMarker (XYMarker *b)
virtual XYMarker * beginMarker (void) const
virtual void endMarker (XYMarker *e)
virtual XYMarker * endMarker (void) const
virtual void axis (const XYAxis *ax)
virtual const XYAxis * axis (void) const
virtual void begin (double bm)
virtual double begin (void) const
virtual void end (double em)
virtual double end (void) const
virtual void color (long c)
virtual long color (void) const
virtual void backgroundColor (long bc)
virtual long backgroundColor (void) const
virtual void insertAction (XYGraph *g)
virtual void removeAction (XYGraph *g)
virtual xybool pick (int px, int py)=0
virtual xybool fence (int x0, int y0, int x1, int y1)=0
virtual void draw (void)=0
virtual void draw (int xmin, int ymin, int xmax, int ymax) const=0
virtual void boundingBox (int &bxmin, int &bymin, int &bxmax, int &bymax) const=0

Protected Methods

long changeColor (long color, int tr, int tg, int tb)

Protected Attributes

const XYAxis * _axis
XYMarker * _beginMarker
XYMarker * _endMarker
double _begin
double _end
long _color
long _backgroundColor

Constructor & Destructor Documentation

XYSlice::XYSlice (  const XYAxis *    axis,
double    begin,
double    end,
xybool    visible = xytrue
) 
 

Definition at line 15 of file xysl.cpp.

References _axis, MIN, and XYObject::position().

virtual XYSlice::~XYSlice (  void    )  [inline, virtual]
 

Definition at line 33 of file xysl.h.


Member Function Documentation

const XYAxis * XYSlice::axis (  void    )  const [virtual]
 

Definition at line 59 of file xysl.cpp.

References _axis.

void XYSlice::axis (  const XYAxis *    ax )  [virtual]
 

Definition at line 54 of file xysl.cpp.

References _axis.

long XYSlice::backgroundColor (  void    )  const [virtual]
 

Definition at line 111 of file xysl.cpp.

References _backgroundColor.

Referenced by XYCartesianSlice::draw().

void XYSlice::backgroundColor (  long    bc )  [virtual]
 

Definition at line 106 of file xysl.cpp.

References _backgroundColor.

double XYSlice::begin (  void    )  const [virtual]
 

Definition at line 72 of file xysl.cpp.

References _begin.

void XYSlice::begin (  double    bm )  [virtual]
 

Definition at line 64 of file xysl.cpp.

References _begin, and _beginMarker.

XYMarker * XYSlice::beginMarker (  void    )  const [virtual]
 

Definition at line 39 of file xysl.cpp.

References _beginMarker.

void XYSlice::beginMarker (  XYMarker *    b )  [virtual]
 

Definition at line 34 of file xysl.cpp.

References _beginMarker.

virtual void XYSlice::boundingBox (  int &    bxmin,
int &    bymin,
int &    bxmax,
int &    bymax
)  const [pure virtual]
 

Implements XYObject.

Implemented in XYCartesianSlice.

long XYSlice::changeColor (  long    color,
int    tr,
int    tg,
int    tb
)  [protected]
 

Definition at line 116 of file xysl.cpp.

Referenced by XYCartesianSlice::XYCartesianSlice().

long XYSlice::color (  void    )  const [virtual]
 

Definition at line 101 of file xysl.cpp.

References _color.

Referenced by color().

void XYSlice::color (  long    c )  [virtual]
 

Definition at line 90 of file xysl.cpp.

References _beginMarker, _color, _endMarker, and color().

virtual void XYSlice::draw (  int    xmin,
int    ymin,
int    xmax,
int    ymax
)  const [pure virtual]
 

Implements XYObject.

Implemented in XYCartesianSlice.

virtual void XYSlice::draw (  void    )  [pure virtual]
 

Implements XYObject.

Implemented in XYCartesianSlice.

double XYSlice::end (  void    )  const [virtual]
 

Definition at line 85 of file xysl.cpp.

References _end.

void XYSlice::end (  double    em )  [virtual]
 

Definition at line 77 of file xysl.cpp.

References _end, and _endMarker.

XYMarker * XYSlice::endMarker (  void    )  const [virtual]
 

Definition at line 49 of file xysl.cpp.

References _endMarker.

void XYSlice::endMarker (  XYMarker *    e )  [virtual]
 

Definition at line 44 of file xysl.cpp.

References _endMarker.

virtual xybool XYSlice::fence (  int    x0,
int    y0,
int    x1,
int    y1
)  [pure virtual]
 

Implemented in XYCartesianSlice.

void XYSlice::insertAction (  XYGraph *    g )  [virtual]
 

Definition at line 146 of file xysl.cpp.

virtual xybool XYSlice::pick (  int    px,
int    py
)  [pure virtual]
 

Implemented in XYCartesianSlice.

void XYSlice::removeAction (  XYGraph *    g )  [virtual]
 

Definition at line 151 of file xysl.cpp.


Member Data Documentation

const XYAxis* XYSlice::_axis [protected]
 

Definition at line 100 of file xysl.h.

Referenced by axis(), and XYSlice().

long XYSlice::_backgroundColor [protected]
 

Definition at line 107 of file xysl.h.

Referenced by backgroundColor(), and XYCartesianSlice::XYCartesianSlice().

double XYSlice::_begin [protected]
 

Definition at line 104 of file xysl.h.

Referenced by begin().

XYMarker* XYSlice::_beginMarker [protected]
 

Definition at line 101 of file xysl.h.

Referenced by begin(), beginMarker(), XYCartesianSlice::boundingBox(), color(), XYCartesianSlice::draw(), XYCartesianSlice::XYCartesianSlice(), and XYCartesianSlice::~XYCartesianSlice().

long XYSlice::_color [protected]
 

Definition at line 106 of file xysl.h.

Referenced by color().

double XYSlice::_end [protected]
 

Definition at line 105 of file xysl.h.

Referenced by end().

XYMarker* XYSlice::_endMarker [protected]
 

Definition at line 102 of file xysl.h.

Referenced by XYCartesianSlice::boundingBox(), color(), XYCartesianSlice::draw(), end(), endMarker(), XYCartesianSlice::XYCartesianSlice(), and XYCartesianSlice::~XYCartesianSlice().


The documentation for this class was generated from the following files:
XY
Tecgraf / PUC-Rio - Computer Graphics Technology Group