40 #ifndef vtkSMViewLayoutProxy_h 41 #define vtkSMViewLayoutProxy_h 43 #include "vtkRemotingViewsModule.h" 74 int Split(
int location,
int direction,
double fraction);
77 return this->Split(
location, VERTICAL, fraction);
81 return this->Split(
location, HORIZONTAL, fraction);
107 bool RemoveView(
int index);
116 bool Collapse(
int location);
122 bool SwapCells(
int location1,
int location2);
128 bool SetSplitFraction(
int location,
double fraction);
136 bool MaximizeCell(
int location);
141 void RestoreMaximizedState();
148 vtkGetMacro(MaximizedCell,
int);
154 bool IsSplitCell(
int location);
159 Direction GetSplitDirection(
int location);
164 double GetSplitFraction(
int location);
207 void UpdateViewPositions();
214 void ShowViewsOnTileDisplay();
222 return this->CaptureWindow(magnification, magnification);
224 vtkImageData* CaptureWindow(
int magnificationX,
int magnificationY);
232 return this->Superclass::SaveXMLState(root);
249 void GetLayoutExtent(
int extent[4]);
255 void SetSize(
const int size[2]);
259 this->GetLayoutExtent(
extent);
272 std::vector<vtkSMViewProxy*> GetViews();
281 void SaveAsPNG(
int rank,
const char* fname);
298 virtual void UpdateState();
305 int GetEmptyCell(
int root);
310 int GetSplittableCell(
int root, Direction& suggested_direction);
321 bool SetBlockUpdate(
bool new_value)
323 bool temp = this->BlockUpdate;
324 this->BlockUpdate = new_value;
330 bool SetBlockUpdateViewPositions(
bool val)
332 bool temp = this->BlockUpdateViewPositions;
333 this->BlockUpdateViewPositions = val;
336 bool BlockUpdateViewPositions;
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.
void PrintSelf(ostream &os, vtkIndent indent) override
vtkImageData * CaptureWindow(int magnification)
Captures an image from the layout (including all the views in the layout.
Superclass for all view proxies.
bool ContainsView(vtkSMViewProxy *view)
Returns if a view is contained in this layout.
Header class that setup every thing in order to use Protobuf messages in a transparent manner.
vtkPVXMLElement * SaveXMLState(vtkPVXMLElement *root) override
Overridden to save custom XML state.
void LoadState(const vtkSMMessage *msg, vtkSMProxyLocator *locator) override
This method is used to initialise the object to the given state If the definitionOnly Flag is set to ...
vtkSMViewLayoutProxy is used by ParaView to layout multiple views in a 2D KD-Tree layout.
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)
void operator=(const vtkSMProxy &)=delete
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.
static int GetSecondChild(int location)
Returns the index for the second child of the given location.
iterates over the properties of a proxy