00001 #include "ColorPoint.h" 00002 00008 ColorPoint::ColorPoint () 00009 { 00010 xValue = 0; 00011 color = new Color(0.f,0.f,0.f); 00012 } 00013 00023 ColorPoint::ColorPoint (float x, Color* c) 00024 { 00025 this->xValue = x; 00026 this->color = c; 00027 } 00028 00034 Color* ColorPoint::getColor() 00035 { 00036 return color; 00037 } 00038 00044 void ColorPoint::setColor(Color* c) 00045 { 00046 color = c; 00047 } 00048 00054 float ColorPoint::getX() 00055 { 00056 return xValue; 00057 } 00058 00064 void ColorPoint::setX(float x) 00065 { 00066 xValue = x; 00067 }