26 class AbstractOverlayLayouter;
43 itk::Point<double, 2>
Size;
73 void SetProperty(
const std::string &propertyKey,
87 void ReplaceProperty(
const std::string &propertyKey,
107 void AddProperty(
const std::string &propertyKey,
110 bool overwrite =
false);
164 template <
typename T>
166 const std::string &propertyKey,
169 property =
dynamic_cast<T *
>(GetProperty(propertyKey, renderer));
170 return property.IsNotNull();
184 template <
typename T>
187 property =
dynamic_cast<T *
>(GetProperty(propertyKey, renderer));
188 return property !=
nullptr;
196 template <
typename T>
213 bool GetBoolProperty(
const std::string &propertyKey,
bool &boolValue,
mitk::BaseRenderer *renderer =
nullptr)
const;
227 bool GetFloatProperty(
const std::string &propertyKey,
236 bool GetStringProperty(
const std::string &propertyKey,
250 void SetBoolProperty(
const std::string &propertyKey,
bool boolValue,
mitk::BaseRenderer *renderer =
nullptr);
256 void SetFloatProperty(
const std::string &propertyKey,
float floatValue,
mitk::BaseRenderer *renderer =
nullptr);
262 void SetStringProperty(
const std::string &propertyKey,
263 const std::string &
string,
277 GetBoolProperty(propertyKey, defaultIsOn, renderer);
286 bool GetName(std::string &nodeName,
288 const std::string &propertyKey =
"name")
const;
299 virtual std::string
GetName()
const;
306 virtual void SetName(
const std::string &name);
313 bool GetColor(
float rgb[],
mitk::BaseRenderer *renderer =
nullptr,
const std::string &propertyKey =
"color")
const;
320 const std::string &propertyKey =
"color");
325 void SetColor(
float red,
329 const std::string &propertyKey =
"color");
334 void SetColor(
const float rgb[],
mitk::BaseRenderer *renderer =
nullptr,
const std::string &propertyKey =
"color");
340 bool GetOpacity(
float &opacity,
mitk::BaseRenderer *renderer,
const std::string &propertyKey =
"opacity")
const;
345 void SetOpacity(
float opacity,
mitk::BaseRenderer *renderer =
nullptr,
const std::string &propertyKey =
"opacity");
361 bool GetVisibility(
bool &visible,
mitk::BaseRenderer *renderer,
const std::string &propertyKey =
"visible")
const;
375 const std::string &propertyKey =
"visible",
376 bool defaultIsOn =
true)
const;
385 void SetVisibility(
bool visible,
387 const std::string &propertyKey =
"visible");
391 virtual void AddToBaseRenderer(
BaseRenderer *renderer) = 0;
395 virtual void AddToRenderer(
BaseRenderer *renderer, vtkRenderer *vtkrenderer) = 0;
398 virtual void RemoveFromBaseRenderer(
BaseRenderer *renderer) = 0;
401 virtual void RemoveFromRenderer(
BaseRenderer *renderer, vtkRenderer *vtkrenderer) = 0;
407 virtual Bounds GetBoundsOnDisplay(
BaseRenderer *renderer)
const;
410 virtual void SetBoundsOnDisplay(
BaseRenderer *renderer,
const Bounds &);
412 void SetForceInForeground(
bool forceForeground);
414 bool IsForceInForeground()
const;
445 bool m_ForceInForeground;
bool IsOn(const std::string &propertyKey, mitk::BaseRenderer *renderer, bool defaultIsOn=true) const
Convenience access method for boolean properties (instances of BoolProperty). Return value is the val...
bool GetProperty(T *&property, const std::string &propertyKey, const mitk::BaseRenderer *renderer=nullptr) const
Get the property of type T with key propertyKey from the PropertyList of the renderer, if available there, otherwise use the BaseRenderer-independent PropertyList.
itk::Point< double, 2 > Size
Organizes the rendering process.
static void Update(vtkPolyData *)
DataCollection - Class to facilitate loading/accessing structured data.
itk::Point< double, 2 > Position
Key-value list holding instances of BaseProperty.
PropertyList::Pointer m_PropertyList
BaseRenderer-independent PropertyList.
itk::TimeStamp & GetLastGenerateDataTime()
std::map< const BaseRenderer *, PropertyList::Pointer > MapOfPropertyLists
MapOfPropertyLists m_MapOfPropertyLists
Map associating each BaseRenderer with its own PropertyList.
Abstract base class for properties.
#define mitkClassMacroItkParent(className, SuperClassName)
Baseclass of Overlay layouters.
Base class for mapper specific rendering ressources.
itk::TimeStamp m_LastGenerateDataTime
timestamp of last update of stored data
bool GetPropertyValue(const std::string &propertyKey, T &value, mitk::BaseRenderer *renderer=nullptr) const
Convenience access method for GenericProperty properties (T being the type of the second parameter...
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
itk::TimeStamp m_DataReferenceChangedTime
Timestamp of the last change of m_Data.
void UpdateGenerateDataTime()
Base class for all overlays.
static const char * replace[]
This is a dictionary to replace long names of classes, modules, etc. to shorter versions in the conso...
static std::string GetName(std::string fileName, std::string suffix)
bool GetProperty(itk::SmartPointer< T > &property, const std::string &propertyKey, const mitk::BaseRenderer *renderer=nullptr) const
Get the property of type T with key propertyKey from the PropertyList of the renderer, if available there, otherwise use the BaseRenderer-independent PropertyList.
Container for position and size on the display.
virtual T GetValue() const