VTK  9.3.1
vtkAssignCoordinatesLayoutStrategy.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
12 #ifndef vtkAssignCoordinatesLayoutStrategy_h
13 #define vtkAssignCoordinatesLayoutStrategy_h
14 
15 #include "vtkGraphLayoutStrategy.h"
16 #include "vtkInfovisLayoutModule.h" // For export macro
17 #include "vtkSmartPointer.h" // For SP ivars
18 
19 VTK_ABI_NAMESPACE_BEGIN
21 
22 class VTKINFOVISLAYOUT_EXPORT vtkAssignCoordinatesLayoutStrategy : public vtkGraphLayoutStrategy
23 {
24 public:
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
30 
33  virtual void SetXCoordArrayName(const char* name);
34  virtual const char* GetXCoordArrayName();
36 
38 
41  virtual void SetYCoordArrayName(const char* name);
42  virtual const char* GetYCoordArrayName();
44 
46 
49  virtual void SetZCoordArrayName(const char* name);
50  virtual const char* GetZCoordArrayName();
52 
56  void Layout() override;
57 
58 protected:
61 
63 
64 private:
66  void operator=(const vtkAssignCoordinatesLayoutStrategy&) = delete;
67 };
68 
69 VTK_ABI_NAMESPACE_END
70 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
uses array values to set vertex locations
abstract superclass for all graph layout strategies
a simple class to control print indentation
Definition: vtkIndent.h:28
vtkSmartPointer< vtkAssignCoordinates > AssignCoordinates
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Given two(or three) arrays take the values in those arrays and simply assign them to the coordinates ...
virtual void Layout()=0
This is the layout method where the graph that was set in SetGraph() is laid out. ...