 |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
Go to the documentation of this file.
26 #ifndef STRUCTURALCOMPONENTPROPERTIES_H
27 #define STRUCTURALCOMPONENTPROPERTIES_H
128 void setRed(
const double r);
132 void setRGB(
const double* rgb);
133 void setRGB(
const double r,
const double g,
const double b);
134 void setRGBA(
const double r,
const double g,
const double b,
const double a);
135 void setRGBA(
const double* rgba);
150 virtual void xmlPrint(std::ostream&);
218 setRGB(rgb[0], rgb[1], rgb[2]);
231 setRGBA(rgba[0], rgba[1], rgba[2], rgba[3]);
283 #endif //STRUCTURALCOMPONENTPROPERTIES_H
Definition: RenderingMode.h:90
Definition: RenderingMode.h:87
Definition: RenderingMode.h:88
std::string getModeString() const
get the string equivalent to the enum rendering mode
Definition: StructuralComponentProperties.h:269
RenderingMode::Mode getMode() const
get current mode
Definition: RenderingMode.h:194
void xmlToFields(xsd::cxx::tree::attribute_set< char > attrs)
convert the xml node parameters to data fields
Definition: Properties.cpp:44
void setVisible(const RenderingMode::Mode, const bool)
Definition: StructuralComponentProperties.h:277
virtual void xmlPrint(std::ostream &)
print to an output stream in "pseaudo" XML format.
Definition: StructuralComponentProperties.cpp:80
void setColor(Color c)
Definition: StructuralComponentProperties.h:234
double getRed() const
Definition: StructuralComponentProperties.h:159
void setGreen(const double g)
Definition: StructuralComponentProperties.h:194
void setVisible(const Mode mode, const bool value)
Set a rendering mode visible or not.
Definition: RenderingMode.h:90
Handle rendering options (surface and wireframe) of an Object3D.
Definition: RenderingMode.h:36
A structural component is composed either by cell or by atoms.
Definition: StructuralComponent.h:51
void setAlpha(const double a)
Definition: StructuralComponentProperties.h:204
color is defined using RGBA
Definition: StructuralComponentProperties.h:54
A class that manages the structural component properties.
Definition: StructuralComponentProperties.h:43
Definition: RenderingMode.h:89
std::string getName() const
get the name (be careful, this method DOES NOT return a copy, so you got the direct ptr to the name!...
Definition: Properties.h:249
Definition: RenderingMode.h:84
~StructuralComponentProperties()
Definition: StructuralComponentProperties.h:115
void setRGB(const double *rgb)
Definition: StructuralComponentProperties.h:216
double getAlpha() const
Definition: StructuralComponentProperties.h:171
This is the main class of this project. Following a nice concept, a physical model is able to represe...
Definition: PhysicalModel.h:85
full complete flashy red
Definition: StructuralComponentProperties.h:50
StructuralComponentProperties(PhysicalModel *p, const Color c, const std::string n)
Definition: StructuralComponentProperties.h:65
void setBlue(const double b)
Definition: StructuralComponentProperties.h:199
double getGreen() const
Definition: StructuralComponentProperties.h:163
double * getRGBA() const
Definition: StructuralComponentProperties.h:179
full complete flashy green
Definition: StructuralComponentProperties.h:51
Color color
Definition: StructuralComponentProperties.h:154
bool isVisible(const Mode mode) const
Return if a rendering mode is currently visible or not.
Definition: RenderingMode.h:122
void setMode(const RenderingMode::Mode)
Definition: StructuralComponentProperties.h:261
double getBlue() const
Definition: StructuralComponentProperties.h:167
RenderingMode::Mode getMode() const
Definition: StructuralComponentProperties.h:265
void setMode(const Mode mode)
set a vizualisation mode
Definition: RenderingMode.h:158
void setRed(const double r)
Definition: StructuralComponentProperties.h:189
no color given, decided by the GUI
Definition: StructuralComponentProperties.h:49
full complete flashy blue
Definition: StructuralComponentProperties.h:52
double * getRGB() const
Definition: StructuralComponentProperties.h:175
void setName(std::string)
set the name (use the string = operator)
Definition: Properties.h:253
void alloc()
Definition: StructuralComponentProperties.h:257
double * colorRGBA
Definition: StructuralComponentProperties.h:152
Mode
This is a duplicate of RenderingMode Mode....
Definition: RenderingMode.h:61
RenderingMode mode
Definition: StructuralComponentProperties.h:155
Definition: RenderingMode.h:91
bool isVisible(const RenderingMode::Mode mode) const
Definition: StructuralComponentProperties.h:273
Color getColor() const
Definition: StructuralComponentProperties.h:183
Definition: RenderingMode.h:85
Color
Default color settings.
Definition: StructuralComponentProperties.h:48
Definition: RenderingMode.h:86
Describes the properties common to all structures and components.
Definition: Properties.h:58
std::string getModeString() const
get the string equivalent to the enum rendering mode
Definition: RenderingMode.h:234
StructuralComponentProperties(PhysicalModel *p, const Color c)
use a Color constant to set the color
Definition: StructuralComponentProperties.h:58
classic gray
Definition: StructuralComponentProperties.h:53
std::map< std::string, std::string > fields
map containing all the different fields (name, value stored as string )
Definition: Properties.h:128
void setRGBA(const double r, const double g, const double b, const double a)
Definition: StructuralComponentProperties.h:221