40 #ifndef vtkSMViewLayoutProxy_h 41 #define vtkSMViewLayoutProxy_h 43 #include "vtkPVServerManagerRenderingModule.h" 54 void PrintSelf(ostream& os, vtkIndent indent);
72 int Split(
int location,
int direction,
double fraction);
75 return this->Split(location, VERTICAL, fraction);
79 return this->Split(location, HORIZONTAL, fraction);
105 bool RemoveView(
int index);
114 bool Collapse(
int location);
120 bool SwapCells(
int location1,
int location2);
126 bool SetSplitFraction(
int location,
double fraction);
134 bool MaximizeCell(
int location);
139 void RestoreMaximizedState();
146 vtkGetMacro(MaximizedCell,
int);
152 bool IsSplitCell(
int location);
157 Direction GetSplitDirection(
int location);
162 double GetSplitFraction(
int location);
179 static int GetParent(
int location) {
return (location > 0 ? ((location - 1) / 2) : -1); }
197 void UpdateViewPositions();
204 void ShowViewsOnTileDisplay();
209 vtkImageData* CaptureWindow(
int magnification);
216 return this->Superclass::SaveXMLState(root);
240 static void SetMultiViewImageBorderColor(
double r,
double g,
double b);
241 static void SetMultiViewImageBorderWidth(
int width);
242 static const double* GetMultiViewImageBorderColor();
243 static void GetMultiViewImageBorderColor(
unsigned char rgb[3]);
244 static void GetMultiViewImageBorderColor(
double rgb[3]);
245 static int GetMultiViewImageBorderWidth();
262 virtual void UpdateState();
269 int GetEmptyCell(
int root);
274 int GetSplittableCell(
int root,
Direction& suggested_direction);
285 bool SetBlockUpdate(
bool new_value)
287 bool temp = this->BlockUpdate;
288 this->BlockUpdate = new_value;
294 static double MultiViewImageBorderColor[3];
295 static int MultiViewImageBorderWidth;
static int GetParent(int location)
Returns the parent index.
static int GetFirstChild(int location)
Returns the index for the first child of the given location.
Superclass for all view proxies.
void operator=(const vtkSMProxy &) VTK_DELETE_FUNCTION
virtual vtkPVXMLElement * SaveXMLState(vtkPVXMLElement *root)
Overridden to save custom XML state.
Header class that setup every thing in order to use Protobuf messages in a transparent manner...
vtkSMViewLayoutProxy is used by ParaView to layout multiple views in a 2D KD-Tree layout...
void PrintSelf(ostream &os, vtkIndent indent)
static vtkSMProxy * New()
virtual int LoadXMLState(vtkPVXMLElement *element, vtkSMProxyLocator *locator)
Loads the proxy state from the XML element.
proxy for a VTK object(s) on a server
is used to locate proxies referred to in state xmls while loading state files.
int SplitVertical(int location, double fraction)
int SplitHorizontal(int location, double fraction)
vtkSMProxyInternals * Internals
virtual vtkPVXMLElement * SaveXMLState(vtkPVXMLElement *root)
Saves the state of the proxy.
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
virtual void LoadState(const vtkSMMessage *msg, vtkSMProxyLocator *locator)
This method is used to initialise the object to the given state If the definitionOnly Flag is set to ...
static int GetSecondChild(int location)
Returns the index for the second child of the given location.
iterates over the properties of a proxy