VTK  9.4.20250421
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
16#include "vtkInfovisLayoutModule.h" // For export macro
17#include "vtkSmartPointer.h" // For SP ivars
18
19VTK_ABI_NAMESPACE_BEGIN
21
22class VTKINFOVISLAYOUT_EXPORT vtkAssignCoordinatesLayoutStrategy : public vtkGraphLayoutStrategy
23{
24public:
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
58protected:
61
63
64private:
66 void operator=(const vtkAssignCoordinatesLayoutStrategy&) = delete;
67};
68
69VTK_ABI_NAMESPACE_END
70#endif
uses array values to set vertex locations
static vtkAssignCoordinatesLayoutStrategy * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSmartPointer< vtkAssignCoordinates > AssignCoordinates
void Layout() override
Perform the random layout.
virtual const char * GetZCoordArrayName()
The array to use for the z coordinate values.
virtual void SetZCoordArrayName(const char *name)
The array to use for the z coordinate values.
virtual const char * GetXCoordArrayName()
The array to use for the x coordinate values.
virtual const char * GetYCoordArrayName()
The array to use for the y coordinate values.
virtual void SetXCoordArrayName(const char *name)
The array to use for the x coordinate values.
virtual void SetYCoordArrayName(const char *name)
The array to use for the y coordinate values.
Given two(or three) arrays take the values in those arrays and simply assign them to the coordinates ...
abstract superclass for all graph layout strategies
a simple class to control print indentation
Definition vtkIndent.h:108
Hold a reference to a vtkObjectBase instance.