14 #include "msdevstudio/MSconfig.h"
51 m_color_gen ( rep.m_color_gen->
clone () )
91 unsigned int size = ntuple -> rows ();
97 double high = range.
high();
98 double low = range.
low();
100 bt -> transformZ ( high );
101 bt -> transformZ ( low );
103 Range newrange ( low, high, range.
pos() );
108 if ( size == 0 )
return;
110 m_x.reserve ( size );
111 m_y.reserve ( size );
114 for (
unsigned int i = 0; i <
size; i++ ) {
115 const vector < double > & row = ntuple -> getRow ( i );
117 double value = row [
dp::Z ];
119 if ( range.
includes ( value ) == false )
continue;
122 const Range & limit_z = bt -> limitZ ();
123 bool retval = limit_z.
includes ( value );
124 if ( retval ==
false )
continue;
126 if ( retval ==
false )
continue;
128 bt -> transformZ ( value );
136 bint -> transform (
m_x,
m_y);
~ColorSymbolPointRep()
The destructor.
float m_size
The size of the representation.
Value
A few common colors.
virtual RepBase * clone()
The clone function returns an object of its own kind which is a copy of this object at this moment...
A PointRep class draws a symbol to represent the value.
static BinToColorFactory * instance()
Returns a pointer to the singleton instance.
A factory for creation of objects whose class is derived from BinToColor.
hippodraw::BinToColor class interface
The base class for the point representation hierarchy.
hippodraw::ViewBase class interface
hippodraw::BinaryTransform class interface
hippodraw::Symbol::Type m_plot_symbol
The PlotSymbol currently used.
void beginPlot(unsigned int size, const BinaryTransform *tf, const ViewBase *view)
Sets the value of cached data members.
The base class for the value to the color transformation.
float size() const
Returns the size of the representation.
hippodraw::DataPointTuple namespace interface
A transform that transforms coordinates from one coordinate system to another.
Type
Enumeration of the type of symbols supported by this class.
virtual void drawProjectedValues(const DataSource *ntuple, TransformBase *transform, ViewBase *view)
numeric::array clone(numeric::array arr)
A PointRep class draws a symbol to represent the coordinate in a color that represents the value...
double low() const
Returns the minimum of the range object.
virtual bool uses(Color::Value) const
Returns false as this classes uses color for a Z value.
intp size(numeric::array arr)
bool drawProjectedValue(unsigned int i, const DataSource *ntuple, const BinaryTransform *transform, ViewBase *view)
Draws a projected value.
A transform that transforms coordinates from one 2D coordinate system to another. ...
BinToColorFactory class interface.
hippodraw::DataSource class interface.
ColorSymbolPointRep()
The default constructor.
A Color class for creating the color object following the standard RGB color space.
ColorSymbolPointRep class interface.
virtual const BinToColor * getValueTransform() const
Returns the value transform.
Base class for DataSource.
double pos() const
Returns the first positive element in range.
void setRange(const Range &r)
Sets the range of the values passed.
std::vector< Color > m_colors
A cache of the colors to be used.
double high() const
Returns the maximum of the range object.
bool includes(double value) const
Returns true if the argument value is inside the range.
A namespace to set the standard for indexing into 3 dimension data point tuple.
std::vector< double > m_y
A cache of the points to be drawn on the Y axis.
std::string m_name
The name of the representation.
std::vector< double > m_x
A cache of the points to be drawn on the X axis.
BinToColor * m_color_gen
The color scale generator.
virtual void setValueTransform(BinToColor *)
Sets the value transform.
virtual const Color & color() const
Returns the representation's color.
Expresses a range of values.
A namespace to set the standard for indexing into 2 dimension data point tuple.
The abstract base class for views.