pColorPoint Class Reference

#include <pColorPoint.h>

List of all members.

Public Member Functions

 pColorPoint (double x, wxColour col, bool isTemp)
 ~pColorPoint ()
double getRealX ()
wxColor getColor ()
void setRealX (double x)
void setColor (wxColour _col)
bool isTemporalColor ()

Private Attributes

double realX
wxColour colour
bool isTemporal

Detailed Description

Definition at line 21 of file pColorPoint.h.


Constructor & Destructor Documentation

pColorPoint::pColorPoint ( double  x,
wxColour  col,
bool  isTemp 
)

Create a point of the function.

Parameters:
x The x real value
_color The asigned colour
isTemp The temporal o fixed asignation to the color

Definition at line 31 of file pColorPoint.cxx.

00032 {
00033         realX = x;
00034         colour = col;   
00035         isTemporal = isTemp;
00036 }

pColorPoint::~pColorPoint (  ) 

Definition at line 38 of file pColorPoint.cxx.

00039 {
00040 
00041 }


Member Function Documentation

wxColor pColorPoint::getColor (  ) 

Returns the colour of the point

Return values:
colour 

Definition at line 57 of file pColorPoint.cxx.

References colour.

Referenced by pColorBar::getAddedColorsPointsList(), pGraphicalFunction::getColorPoints(), LogicalColorBar::getDataAt(), pColorBar::getLastMovedColorPoint(), pColorBar::getPointsListWithTemps(), pPlotter::GetValuesColorPointsFunction(), and LogicalColorBar::setColorPoints().

00058 {
00059         return colour;
00060 }

Here is the caller graph for this function:

double pColorPoint::getRealX (  ) 
bool pColorPoint::isTemporalColor (  ) 

Indicates if the colour point is temporal or not

Return values:
isTemporal 

Definition at line 66 of file pColorPoint.cxx.

References isTemporal.

Referenced by pColorBar::getAddedColorsPointsList(), pGraphicalFunction::getColorPoints(), pColorBar::getPointsListWithTemps(), pColorBar::onMouseMove(), and pColorBar::repaintView().

00067 {
00068         return isTemporal;
00069 }

Here is the caller graph for this function:

void pColorPoint::setColor ( wxColour  _col  )  [inline]

Sets the colour of the point

Parameters:
_col 

Definition at line 64 of file pColorPoint.h.

References colour.

Referenced by LogicalColorBar::changeColor(), and pColorBar::getLastMovedColorPoint().

00065         {
00066                 colour = _col;
00067         }

Here is the caller graph for this function:

void pColorPoint::setRealX ( double  x  )  [inline]

Sets the x-value of the point

Parameters:
x 

Definition at line 56 of file pColorPoint.h.

References realX.

Referenced by pColorBar::getLastMovedColorPoint(), and pColorBar::onMouseMove().

00057         {
00058                 realX = x;
00059         }

Here is the caller graph for this function:


Member Data Documentation

wxColour pColorPoint::colour [private]

Definition at line 87 of file pColorPoint.h.

Referenced by getColor(), and setColor().

bool pColorPoint::isTemporal [private]

Definition at line 91 of file pColorPoint.h.

Referenced by isTemporalColor().

double pColorPoint::realX [private]

Definition at line 83 of file pColorPoint.h.

Referenced by getRealX(), and setRealX().


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

Generated on 20 Oct 2010 for creaMaracasVisu_lib by  doxygen 1.6.1