VTK: Infovis/Layout/vtkAssignCoordinatesLayoutStrategy.h Source File

| 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
20 class vtkAssignCoordinates;
21
22 class VTKINFOVISLAYOUT_EXPORT vtkAssignCoordinatesLayoutStrategy : public vtkGraphLayoutStrategy
23 {
24 public:
25 static vtkAssignCoordinatesLayoutStrategy* New();
26 vtkTypeMacro(vtkAssignCoordinatesLayoutStrategy, vtkGraphLayoutStrategy);
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:
59 vtkAssignCoordinatesLayoutStrategy();
60 ~vtkAssignCoordinatesLayoutStrategy() override;
61
62 vtkSmartPointer<vtkAssignCoordinates> AssignCoordinates;
63
64 private:
65 vtkAssignCoordinatesLayoutStrategy(const vtkAssignCoordinatesLayoutStrategy&) = delete;
66 void operator=(const vtkAssignCoordinatesLayoutStrategy&) = delete;
67 };
68
69 VTK_ABI_NAMESPACE_END
70 #endif
vtkAssignCoordinatesLayoutStrategy
uses array values to set vertex locations
Definition: vtkAssignCoordinatesLayoutStrategy.h:23
vtkAssignCoordinatesLayoutStrategy::New
static vtkAssignCoordinatesLayoutStrategy * New()
vtkAssignCoordinatesLayoutStrategy::GetYCoordArrayName
virtual const char * GetYCoordArrayName()
The array to use for the y coordinate values.
vtkAssignCoordinatesLayoutStrategy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAssignCoordinatesLayoutStrategy::~vtkAssignCoordinatesLayoutStrategy
~vtkAssignCoordinatesLayoutStrategy() override
vtkAssignCoordinatesLayoutStrategy::AssignCoordinates
vtkSmartPointer< vtkAssignCoordinates > AssignCoordinates
Definition: vtkAssignCoordinatesLayoutStrategy.h:62
vtkAssignCoordinatesLayoutStrategy::Layout
void Layout() override
Perform the random layout.
vtkAssignCoordinatesLayoutStrategy::SetZCoordArrayName
virtual void SetZCoordArrayName(const char *name)
The array to use for the z coordinate values.
vtkAssignCoordinatesLayoutStrategy::GetXCoordArrayName
virtual const char * GetXCoordArrayName()
The array to use for the x coordinate values.
vtkAssignCoordinatesLayoutStrategy::GetZCoordArrayName
virtual const char * GetZCoordArrayName()
The array to use for the z coordinate values.
vtkAssignCoordinatesLayoutStrategy::SetXCoordArrayName
virtual void SetXCoordArrayName(const char *name)
The array to use for the x coordinate values.
vtkAssignCoordinatesLayoutStrategy::vtkAssignCoordinatesLayoutStrategy
vtkAssignCoordinatesLayoutStrategy()
vtkAssignCoordinatesLayoutStrategy::SetYCoordArrayName
virtual void SetYCoordArrayName(const char *name)
The array to use for the y coordinate values.
vtkAssignCoordinates
Given two(or three) arrays take the values in those arrays and simply assign them to the coordinates ...
Definition: vtkAssignCoordinates.h:26
vtkGraphLayoutStrategy
abstract superclass for all graph layout strategies
Definition: vtkGraphLayoutStrategy.h:40
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkSmartPointer< vtkAssignCoordinates >
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkGraphLayoutStrategy.h
vtkSmartPointer.h