00001 00012 // for truncation warning in debug mode 00013 #ifdef _MSC_VER 00014 #include "msdevstudio/MSconfig.h" 00015 #endif 00016 00017 #include "Image.h" 00018 00019 #include "projectors/MapMatrixProjector.h" 00020 #include "reps/ColorBoxPointRep.h" 00021 00022 using namespace hippodraw; 00023 00024 Image::Image ( ) 00025 : DataRep() 00026 { 00027 m_name = "Image"; 00028 00029 MapMatrixProjector * projector = new MapMatrixProjector(); 00030 m_projector = projector; 00031 m_rep = new ColorBoxPointRep(); 00032 } 00033 00034 DataRep * Image::clone () 00035 { 00036 return new Image ( *this ); 00037 } 00038 00039 bool Image::acceptFunction ( int num ) 00040 { 00041 return num == 2; 00042 } 00043 00044 using namespace hippodraw; 00045 00046 bool 00047 Image:: 00048 hasAxis ( hippodraw::Axes::Type axis ) const 00049 { 00050 return axis == Axes::X || axis == Axes::Y || axis ==Axes::Z; 00051 } 00052 00053 bool 00054 Image:: 00055 needsMatrixSet () const 00056 { 00057 return true; 00058 }