|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
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
@ WIREFRAME
Definition: RenderingMode.h:93
@ SURFACE
Definition: RenderingMode.h:90
@ WIREFRAME_AND_SURFACE
Definition: RenderingMode.h:91
std::string getModeString() const
get the string equivalent to the enum rendering mode
Definition: StructuralComponentProperties.h:270
RenderingMode::Mode getMode() const
get current mode
Definition: RenderingMode.h:196
void xmlToFields(xsd::cxx::tree::attribute_set< char > attrs)
convert the xml node parameters to data fields
Definition: Properties.cpp:41
StructuralComponentProperties(PhysicalModel *p, const double *rgb, const std::string n)
Definition: StructuralComponentProperties.h:80
void setVisible(const RenderingMode::Mode, const bool)
Definition: StructuralComponentProperties.h:278
virtual void xmlPrint(std::ostream &)
print to an output stream in "pseaudo" XML format.
Definition: StructuralComponentProperties.cpp:81
StructuralComponentProperties(PhysicalModel *p, const double r, const double g, const double b, const std::string n)
Definition: StructuralComponentProperties.h:95
void setColor(Color c)
Definition: StructuralComponentProperties.h:235
double getRed() const
Definition: StructuralComponentProperties.h:160
void setGreen(const double g)
Definition: StructuralComponentProperties.h:195
void setVisible(const Mode mode, const bool value)
Set a rendering mode visible or not.
Definition: RenderingMode.h:92
Handle rendering options (surface and wireframe) of an Object3D.
Definition: RenderingMode.h:37
A structural component is composed either by cell or by atoms.
Definition: StructuralComponent.h:52
StructuralComponentProperties(PhysicalModel *p, const double r, const double g, const double b)
use 3 floats to set the color
Definition: StructuralComponentProperties.h:88
void setAlpha(const double a)
Definition: StructuralComponentProperties.h:205
@ OTHER
color is defined using RGBA
Definition: StructuralComponentProperties.h:55
A class that manages the structural component properties.
Definition: StructuralComponentProperties.h:44
@ WIREFRAME_AND_POINTS
Definition: RenderingMode.h:92
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:250
@ NONE
Definition: RenderingMode.h:87
~StructuralComponentProperties()
Definition: StructuralComponentProperties.h:116
void setRGB(const double *rgb)
Definition: StructuralComponentProperties.h:217
double getAlpha() const
Definition: StructuralComponentProperties.h:172
This is the main class of this project. Following a nice concept, a physical model is able to represe...
Definition: PhysicalModel.h:86
@ RED
full complete flashy red
Definition: StructuralComponentProperties.h:51
StructuralComponentProperties(PhysicalModel *p)
defaultcolor is gray
Definition: StructuralComponentProperties.h:103
StructuralComponentProperties(PhysicalModel *p, const Color c, const std::string n)
Definition: StructuralComponentProperties.h:66
void setBlue(const double b)
Definition: StructuralComponentProperties.h:200
double getGreen() const
Definition: StructuralComponentProperties.h:164
double * getRGBA() const
Definition: StructuralComponentProperties.h:180
@ GREEN
full complete flashy green
Definition: StructuralComponentProperties.h:52
Color color
Definition: StructuralComponentProperties.h:155
bool isVisible(const Mode mode) const
Return if a rendering mode is currently visible or not.
Definition: RenderingMode.h:124
void setMode(const RenderingMode::Mode)
Definition: StructuralComponentProperties.h:262
double getBlue() const
Definition: StructuralComponentProperties.h:168
RenderingMode::Mode getMode() const
Definition: StructuralComponentProperties.h:266
void setMode(const Mode mode)
set a vizualisation mode
Definition: RenderingMode.h:160
void setRed(const double r)
Definition: StructuralComponentProperties.h:190
@ DEFAULT
no color given, decided by the GUI
Definition: StructuralComponentProperties.h:50
@ BLUE
full complete flashy blue
Definition: StructuralComponentProperties.h:53
double * getRGB() const
Definition: StructuralComponentProperties.h:176
void setName(std::string)
set the name (use the string = operator)
Definition: Properties.h:254
StructuralComponentProperties(PhysicalModel *p, const double *rgb)
use a double[3] array to set the color
Definition: StructuralComponentProperties.h:73
void alloc()
Definition: StructuralComponentProperties.h:258
double * colorRGBA
Definition: StructuralComponentProperties.h:153
Mode
This is a duplicate of RenderingMode Mode....
Definition: RenderingMode.h:63
RenderingMode mode
Definition: StructuralComponentProperties.h:156
@ WIREFRAME_AND_SURFACE_AND_POINTS
Definition: RenderingMode.h:94
StructuralComponentProperties(PhysicalModel *p, const std::string n)
Definition: StructuralComponentProperties.h:110
bool isVisible(const RenderingMode::Mode mode) const
Definition: StructuralComponentProperties.h:274
Color getColor() const
Definition: StructuralComponentProperties.h:184
@ POINTS
Definition: RenderingMode.h:88
Color
Default color settings.
Definition: StructuralComponentProperties.h:49
@ POINTS_AND_SURFACE
Definition: RenderingMode.h:89
Describes the properties common to all structures and components.
Definition: Properties.h:59
std::string getModeString() const
get the string equivalent to the enum rendering mode
Definition: RenderingMode.h:236
StructuralComponentProperties(PhysicalModel *p, const Color c)
use a Color constant to set the color
Definition: StructuralComponentProperties.h:59
@ GRAY
classic gray
Definition: StructuralComponentProperties.h:54
std::map< std::string, std::string > fields
map containing all the different fields (name, value stored as string )
Definition: Properties.h:129
void setRGBA(const double r, const double g, const double b, const double a)
Definition: StructuralComponentProperties.h:222