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

TxqAttribDrawable Class Reference

The TxqAttribDrawable class draws points, lines or polygons from the input TxAttributeSet. More...

#include <TxqAttribDrawable.h>

Inheritance diagram for TxqAttribDrawable::

QObject Txq2dDrawable TxqDrawable List of all members.

Public Slots

void canvasResize ()
 slot to set the resize canvas flag. More...

void zoomResize ()
 slot to set the zoom resize flag. More...

void zoomOff ()
 slot to set the zoom resize flag to off. More...

void clearPoints ()
 slot to clear the save point array. More...


Public Methods

 TxqAttribDrawable (TxAttributeSet *a)
 The constructor requires a TxAttributeSet. More...

virtual ~TxqAttribDrawable ()
 The destructor. More...

void paint (QPainter *g)
 Paints the drawable. More...

void plotAttrib ()
 Public interface to plot the TxqAttribDrawable. More...

void setPixmap (QPixmap *p)
 Set the pixmap to draw the data. More...


Protected Methods

void dump (QTextStream *ts)
 Dump the object contents to the text stream ts. More...


Private Attributes

QColor color
 The color of the object. More...

TxAttributeSetattrib
 The class attribute set. More...

double xPoint
 The x point to draw. More...

double yPoint
 The y point to draw. More...

QArray<double> xPointArray
 The QPointArray to save X points. More...

QArray<double> yPointArray
 The QPointArray to save Y points. More...

QArray<QColorcolorArray
 The QArray of colors. More...

unsigned int pointIndex
 The current point index. More...

bool savePoints
 bool flag to determine if saving points. More...

bool resizePointIndex
 bool flag if point array is set back to 0. More...

bool canvasResizeFlag
 bool flag to set true if canvas is resized. More...

bool zoomFlag
 bool flag set true if canvas is in a zoomed state. More...

bool firstZoomOff
 bool flag for first zoom off. More...

QPainter* painter
 The QPainter pointer. More...

QPixmap* pixmap
 The pixmap. More...


Detailed Description

The TxqAttribDrawable class draws points, lines or polygons from the input TxAttributeSet.

This class can be used for animation.

Copyright 2001 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
TxqAttribDrawable.h,v 1.6 2001/10/11 22:45:24 kgl Exp

Definition at line 37 of file TxqAttribDrawable.h.


Constructor & Destructor Documentation

TxqAttribDrawable::TxqAttribDrawable ( TxAttributeSet * a )
 

The constructor requires a TxAttributeSet.

Parameters:
a   the TxAttributeSet containing the object to be drawn

TxqAttribDrawable::~TxqAttribDrawable ( ) [inline, virtual]
 

The destructor.

Definition at line 52 of file TxqAttribDrawable.h.


Member Function Documentation

void TxqAttribDrawable::canvasResize ( ) [slot]
 

slot to set the resize canvas flag.

void TxqAttribDrawable::clearPoints ( ) [slot]
 

slot to clear the save point array.

void TxqAttribDrawable::dump ( QTextStream * ts ) [protected, virtual]
 

Dump the object contents to the text stream ts.

Parameters:
ts   the QTextStream to dump contents

Reimplemented from TxqDrawable.

void TxqAttribDrawable::paint ( QPainter * g ) [virtual]
 

Paints the drawable.

Parameters:
g   the QPainter device to paint upon.

Reimplemented from Txq2dDrawable.

void TxqAttribDrawable::plotAttrib ( )
 

Public interface to plot the TxqAttribDrawable.

void TxqAttribDrawable::setPixmap ( QPixmap * p ) [inline]
 

Set the pixmap to draw the data.

Parameters:
p   the QPixmap pointer.

Definition at line 69 of file TxqAttribDrawable.h.

void TxqAttribDrawable::zoomOff ( ) [slot]
 

slot to set the zoom resize flag to off.

void TxqAttribDrawable::zoomResize ( ) [slot]
 

slot to set the zoom resize flag.


Member Data Documentation

TxAttributeSet * TxqAttribDrawable::attrib [private]
 

The class attribute set.

Definition at line 113 of file TxqAttribDrawable.h.

bool TxqAttribDrawable::canvasResizeFlag [private]
 

bool flag to set true if canvas is resized.

Definition at line 158 of file TxqAttribDrawable.h.

QColor TxqAttribDrawable::color [private]
 

The color of the object.

Reimplemented from TxqDrawable.

Definition at line 108 of file TxqAttribDrawable.h.

QArray< QColor > TxqAttribDrawable::colorArray [private]
 

The QArray of colors.

Definition at line 138 of file TxqAttribDrawable.h.

bool TxqAttribDrawable::firstZoomOff [private]
 

bool flag for first zoom off.

Definition at line 168 of file TxqAttribDrawable.h.

QPainter * TxqAttribDrawable::painter [private]
 

The QPainter pointer.

Definition at line 173 of file TxqAttribDrawable.h.

QPixmap * TxqAttribDrawable::pixmap [private]
 

The pixmap.

Definition at line 178 of file TxqAttribDrawable.h.

unsigned int TxqAttribDrawable::pointIndex [private]
 

The current point index.

Definition at line 143 of file TxqAttribDrawable.h.

bool TxqAttribDrawable::resizePointIndex [private]
 

bool flag if point array is set back to 0.

Definition at line 153 of file TxqAttribDrawable.h.

bool TxqAttribDrawable::savePoints [private]
 

bool flag to determine if saving points.

Definition at line 148 of file TxqAttribDrawable.h.

double TxqAttribDrawable::xPoint [private]
 

The x point to draw.

Definition at line 118 of file TxqAttribDrawable.h.

QArray< double > TxqAttribDrawable::xPointArray [private]
 

The QPointArray to save X points.

Definition at line 128 of file TxqAttribDrawable.h.

double TxqAttribDrawable::yPoint [private]
 

The y point to draw.

Definition at line 123 of file TxqAttribDrawable.h.

QArray< double > TxqAttribDrawable::yPointArray [private]
 

The QPointArray to save Y points.

Definition at line 133 of file TxqAttribDrawable.h.

bool TxqAttribDrawable::zoomFlag [private]
 

bool flag set true if canvas is in a zoomed state.

Definition at line 163 of file TxqAttribDrawable.h.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.