Skip to content
Snippets Groups Projects
Commit d3adc537 authored by Jaswant Panchumarti (Kitware)'s avatar Jaswant Panchumarti (Kitware)
Browse files

Exclude render window details from serialization

- excludes UseOffScreenBuffers, ShowWindow and OffScreenRendering and
  DPI properties
- these properties are typically setup differently in clients
parent a7e810c9
No related branches found
No related tags found
No related merge requests found
......@@ -102,6 +102,7 @@ public:
/**
* Show or not Show the window
*/
VTK_MARSHALEXCLUDE(VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL)
vtkGetMacro(ShowWindow, bool);
vtkSetMacro(ShowWindow, bool);
vtkBooleanMacro(ShowWindow, bool);
......@@ -113,6 +114,7 @@ public:
* All four combinations of ShowWindow and UseOffScreenBuffers
* should work for most rendering backends.
*/
VTK_MARSHALEXCLUDE(VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL)
vtkSetMacro(UseOffScreenBuffers, bool);
vtkGetMacro(UseOffScreenBuffers, bool);
vtkBooleanMacro(UseOffScreenBuffers, bool);
......@@ -197,6 +199,7 @@ public:
* Return a best estimate to the dots per inch of the display
* device being rendered (or printed).
*/
VTK_MARSHALEXCLUDE(VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL)
vtkGetMacro(DPI, int);
vtkSetClampMacro(DPI, int, 1, VTK_INT_MAX);
///@}
......@@ -213,6 +216,7 @@ public:
/**
* Convenience to set SHowWindow and UseOffScreenBuffers in one call
*/
VTK_MARSHALEXCLUDE(VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL)
void SetOffScreenRendering(vtkTypeBool val)
{
this->SetShowWindow(val == 0);
......@@ -225,6 +229,7 @@ public:
* Deprecated, directly use GetShowWindow and GetOffScreenBuffers
* instead.
*/
VTK_MARSHALEXCLUDE(VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL)
vtkTypeBool GetOffScreenRendering() { return this->GetShowWindow() ? 0 : 1; }
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment