XeStyle Class Reference
Handling graphics styles.
More...
#include <XeCore.h>
List of all members.
Public Member Functions |
int | getFillColor () |
int | getFillStyle () |
int | getLineColor () |
int | getLineStyle () |
int | getLineWidth () |
int | getMarkerColor () |
double | getMarkerSize () |
int | getMarkerStyle () |
bool | printIt (int level=1) |
| method to print the object
|
void | setFillColor (int color=DEFAULT_FILL_COLOR) |
void | setFillProperties (int color=DEFAULT_FILL_COLOR, int style=DEFAULT_FILL_STYLE) |
void | setFillStyle (int style=DEFAULT_FILL_STYLE) |
void | setLineColor (int color=DEFAULT_LINE_COLOR) |
void | setLineProperties (int color=DEFAULT_LINE_COLOR, int width=DEFAULT_LINE_WIDTH, int style=DEFAULT_LINE_STYLE) |
void | setLineStyle (int style=DEFAULT_LINE_STYLE) |
void | setLineStyleColor (int index=0) |
| Set Line color according to predefined scheme.
|
void | setLineWidth (int width=DEFAULT_LINE_WIDTH) |
void | setMarkerColor (int color=DEFAULT_MARKER_COLOR) |
void | setMarkerProperties (int color=DEFAULT_MARKER_COLOR, double size=DEFAULT_MARKER_SIZE, int style=DEFAULT_MARKER_STYLE) |
void | setMarkerSize (double size=DEFAULT_MARKER_SIZE) |
void | setMarkerStyle (int style=DEFAULT_MARKER_STYLE) |
void | setMarkerStyleColor (int index=0) |
| XeStyle (int lineColor=DEFAULT_LINE_COLOR, int lineWidth=DEFAULT_LINE_WIDTH, int lineStyle=DEFAULT_LINE_STYLE, int markerColor=DEFAULT_MARKER_COLOR, double markerSize=DEFAULT_MARKER_SIZE, int markerStyle=DEFAULT_MARKER_STYLE, int fillColor=DEFAULT_FILL_COLOR, int fillStyle=DEFAULT_FILL_STYLE) |
| Constructor.
|
Static Public Member Functions |
static XeStyle * | forEdge (int edge) |
static XeStyle * | forTValue (double t) |
| Get the 'normalized style' while plotting t-values graphs.
|
static int | getRainbowColor (int index, int nC, int mode=ASYMMETRIC) |
| get a color according the rainbow
|
static int | getStyleColor (int index) |
| get a color according to a "reasonnable" predefined scheme
|
Protected Attributes |
int | fillColor |
int | fillStyle |
int | lineColor |
int | lineStyle |
int | lineWidth |
int | markerColor |
double | markerSize |
int | markerStyle |
Detailed Description
Handling graphics styles.
Constructor & Destructor Documentation
XeStyle::XeStyle |
( |
int |
lineColor = DEFAULT_LINE_COLOR , |
|
|
int |
lineWidth = DEFAULT_LINE_WIDTH , |
|
|
int |
lineStyle = DEFAULT_LINE_STYLE , |
|
|
int |
markerColor = DEFAULT_MARKER_COLOR , |
|
|
double |
markerSize = DEFAULT_MARKER_SIZE , |
|
|
int |
markerStyle = DEFAULT_MARKER_STYLE , |
|
|
int |
fillColor = DEFAULT_FILL_COLOR , |
|
|
int |
fillStyle = DEFAULT_FILL_STYLE | |
|
) |
| | |
Constructor.
- Parameters:
-
| params | (see name of parameter) |
Member Function Documentation
static XeStyle* XeStyle::forTValue |
( |
double |
t |
) |
[static] |
Get the 'normalized style' while plotting t-values graphs.
- Returns:
- pointer to the XeStyle
- Parameters:
-
static int XeStyle::getRainbowColor |
( |
int |
index, |
|
|
int |
nC, |
|
|
int |
mode = ASYMMETRIC | |
|
) |
| | [static] |
get a color according the rainbow
- Returns:
- Color corresponding to index, number of points, and symtri
- Parameters:
-
| index | index (0 is at purple, last one is red) |
| nC | number of indices (if SYMMETRIC, nC=2*colors+1) |
static int XeStyle::getStyleColor |
( |
int |
index |
) |
[static] |
get a color according to a "reasonnable" predefined scheme
- Returns:
- Color corresponding to index x
- Parameters:
-
bool XeStyle::printIt |
( |
int |
level = 1 |
) |
[virtual] |
method to print the object
- Returns:
- true if no error was found
- Parameters:
-
Reimplemented from XeObject.
void XeStyle::setLineStyleColor |
( |
int |
index = 0 |
) |
|
Set Line color according to predefined scheme.
- Parameters:
-
The documentation for this class was generated from the following file:
- /home/lellouch/Dropbox/Xenon/Xephyr/XeCore.h