ParticleAdaptor.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef ParticleAdaptor_h
4 #define ParticleAdaptor_h
5 
6 #ifdef __cplusplus
7 extern "C"
8 {
9 #endif
10 
11  void coprocessorinitialize(void* handle);
12 
13  // Description:
14  // creates an image based on particle positions passed in xyz.
15  // n is the number of particles
16  // xyz particle locations in interlaced format (x1,y1,z1,x2,y2,z2,...)
17  // bounds the bounds of the space (xmin,ymin,zmin,xmax,ymax,zmax)
18  // leave as null if there are no bounds
19  // r is the radius of the particles as rendered
20  // attr the attribute to color by, should be of length n
21  // min and max are the minimum and maximum value of the attributes
22  // used to specify the linear mapping to color
23  // theta and phi represent the camera position angles around
24  // the perimeter
25  // camera always look at the center of the xyz,
26  // camera's up will always be positive or zero
27  // in y (depending on phi)
28  // z represents distance from the center, setting this to zero will
29  // place the camera so that it can see all particles
30  void coprocessorcreateimage(int timestep, double time, char* filename_base, int n, double* xyz,
31  double* bounds, double r, double* attr, double min, double max, double theta, double phi,
32  double z);
33 
34  void coprocessorfinalize();
35 
36 #ifdef __cplusplus
37 } /* extern "C" */
38 #endif
39 
40 #endif /* ParticleAdaptor_h */
void coprocessorfinalize()
void coprocessorinitialize(void *handle)
void coprocessorcreateimage(int timestep, double time, char *filename_base, int n, double *xyz, double *bounds, double r, double *attr, double min, double max, double theta, double phi, double z)