Main Page   Namespace List   Compound List   File List   Compound Members  

TLine Class Reference

#include <transfer.h>

List of all members.

Public Methods

 TLine (TLinePoint s, TLinePoint e, THistogram *h, int pd)
 TLine (TLine &l)
 TLine (const TLine &l)
const TLine & operator= (const TLine &l)
int __fastcall getStartX (TPaintBox *pb)
int __fastcall getStartY (TPaintBox *pb)
int __fastcall getEndX (TPaintBox *pb)
int __fastcall getEndY (TPaintBox *pb)
float __fastcall getSlope (TPaintBox *pb)
bool __fastcall highSlope (TPaintBox *pb)
bool __fastcall isNear (TPaintBox *pb, int x, int y)
void __fastcall drawTo (TPaintBox *pb)

Public Attributes

__property TLinePoint Start = { read=_start, write=_start }
__property TLinePoint End = { read=_end, write=_end }
__property bool Selected = { read=_selected, write=_selected }

Private Methods

void __fastcall _drawMarker (TCanvas *c, TColor col, int x, int y, int width)
void __fastcall _drawCross (TCanvas *c, TColor col, int x, int y)

Private Attributes

TLinePoint _start
TLinePoint _end
bool _selected


Detailed Description

Represents one line of the transfer function.

The class has to a start- and an endpoint.


Constructor & Destructor Documentation

TLine::TLine TLinePoint    s,
TLinePoint    e,
THistogram   h,
int    pd
[inline]
 

Constructor.

TLine::TLine TLine &    l [inline]
 

Constructor.

TLine::TLine const TLine &    l [inline]
 

Constructor.


Member Function Documentation

void __fastcall TLine::_drawCross TCanvas *    c,
TColor    col,
int    x,
int    y
[private]
 

Draws a endpoint of an unselected line.

void __fastcall TLine::_drawMarker TCanvas *    c,
TColor    col,
int    x,
int    y,
int    width
[private]
 

Draws a marker, which should show that the line (or point) is selected.

void __fastcall TLine::drawTo TPaintBox *    pb
 

Draw the line to the TPaintBox pb.

int __fastcall TLine::getEndX TPaintBox *    pb
 

Returns the end points X in TPaintBox coordinates.

int __fastcall TLine::getEndY TPaintBox *    pb
 

Returns the end points Y in TPaintBox coordinates.

float __fastcall TLine::getSlope TPaintBox *    pb
 

Get the line slope in TPaintBox coordinates.

int __fastcall TLine::getStartX TPaintBox *    pb
 

Returns the start points X in TPaintBox coordinates.

int __fastcall TLine::getStartY TPaintBox *    pb
 

Returns the start points Y in TPaintBox coordinates.

bool __fastcall TLine::highSlope TPaintBox *    pb
 

Is slope in TPaintBox coordinates greater than 1.0 .

bool __fastcall TLine::isNear TPaintBox *    pb,
int    x,
int    y
 

Returns true if the distance to the point (x,y) is smaler than DEF_DIST.

const TLine& TLine::operator= const TLine &    l [inline]
 

Asignment Operator.


Member Data Documentation

TLinePoint TLine::_end [private]
 

The end point.

bool TLine::_selected [private]
 

Is the line selected.

TLinePoint TLine::_start [private]
 

The start point.

__property TLinePoint TLine::End = { read=_end, write=_end }
 

The end point.

__property bool TLine::Selected = { read=_selected, write=_selected }
 

Is the line selected.

__property TLinePoint TLine::Start = { read=_start, write=_start }
 

The start point.


The documentation for this class was generated from the following files:
Generated on Mon Dec 9 23:09:09 2002 by doxygen1.2.18