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