-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvtkStrangeAttractors.h
87 lines (72 loc) · 2.88 KB
/
vtkStrangeAttractors.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*=========================================================================
Program: AstroViz plugin for ParaView
Module: $RCSfile: vtkStrangeAttractors.h,v $
Copyright (c) Christine Corbett Moran
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkStrangeAttractors - Read points from a Tipsy standard binary file
// .SECTION Description
// Read points from a Tipsy standard binary file. Fully parallel. Has ability
// to read in additional attributes from an ascii file, and to only load in
// marked particles but both these functions are serial only.
#ifndef __vtkStrangeAttractors_h
#define __vtkStrangeAttractors_h
#include "vtkPolyDataAlgorithm.h" // superclass
#include "vtkSmartPointer.h"
#include "tipsylib/ftipsy.hpp" // functions take Tipsy particle objects
#include <vtkstd/vector>
class vtkPolyData;
class vtkCharArray;
class vtkIdTypeArray;
class vtkFloatArray;
class vtkPoints;
class vtkCellArray;
class vtkDataArraySelection;
class VTK_EXPORT vtkStrangeAttractors : public vtkPolyDataAlgorithm
{
public:
static vtkStrangeAttractors* New();
vtkTypeRevisionMacro(vtkStrangeAttractors,vtkPolyDataAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set/Get the name of the file from which to read points.
vtkSetStringMacro(FileName);
vtkGetStringMacro(FileName);
vtkSetMacro(PrimesOnly,int);
vtkGetMacro(PrimesOnly,int);
// The BTX, ETX comments bracket the portion of the code which should not be
// attempted to wrap for use by python, specifically the code which uses
// C++ templates as this code is unable to be wrapped. DO NOT REMOVE.
//BTX
protected:
vtkStrangeAttractors();
~vtkStrangeAttractors();
char* FileName;
int RequestInformation(vtkInformation*, vtkInformationVector**,
vtkInformationVector*);
int RequestData(vtkInformation*,vtkInformationVector**,
vtkInformationVector*);
vtkIdType ParticleIndex;
vtkSmartPointer<vtkIdTypeArray> GlobalIds;
vtkSmartPointer<vtkPoints> Positions;
vtkSmartPointer<vtkCellArray> Vertices;
vtkSmartPointer<vtkIntArray> Primes;
vtkSmartPointer<vtkFloatArray> Velocity;
int PrimesOnly;
private:
vtkStrangeAttractors(const vtkStrangeAttractors&); // Not implemented.
void operator=(const vtkStrangeAttractors&); // Not implemented.
/* Helper functions for storing data in output vector*/
// Description:
// allocates all vtk arrays for Tipsy variables and places them
// in the output vector
void AllocateAllVariableArrays(vtkIdType numBodies,
vtkPolyData* output);
// used to get the next point color
void nextColor(struct point *point);
//ETX
};
#endif