ParticleAdaptor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: ParticleAdaptor.h
5 
6  Copyright (c) Sandia Corporation, Kitware, Inc.
7  All rights reserved.
8 
9  ParaView is a free software; you can redistribute it and/or modify it
10  under the terms of the ParaView license version 1.2.
11 
12  See License_v1.2.txt for the full ParaView license.
13  A copy of this license can be obtained by contacting
14  Kitware Inc.
15  28 Corporate Drive
16  Clifton Park, NY 12065
17  USA
18 
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR
23 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 
31 =========================================================================*/
32 #ifndef ParticleAdaptor_h
33 #define ParticleAdaptor_h
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 void coprocessorinitialize(void* handle);
40 
41 // Description:
42 // creates an image based on particle positions passed in xyz.
43 // n is the number of particles
44 // xyz particle locations in interlaced format (x1,y1,z1,x2,y2,z2,...)
45 // bounds the bounds of the space (xmin,ymin,zmin,xmax,ymax,zmax)
46 // leave as null if there are no bounds
47 // r is the radius of the particles as rendered
48 // attr the attribute to color by, should be of length n
49 // min and max are the minimum and maximum value of the attributes
50 // used to specify the linear mapping to color
51 // theta and phi represent the camera position angles around
52 // the perimeter
53 // camera always look at the center of the xyz,
54 // camera's up will always be positive or zero
55 // in y (depending on phi)
56 // z represents distance from the center, setting this to zero will
57 // place the camera so that it can see all particles
58 void coprocessorcreateimage(int timestep, double time, char* filename_base, int n, double* xyz,
59  double* bounds, double r, double* attr, double min, double max, double theta, double phi,
60  double z);
61 
62 void coprocessorfinalize();
63 
64 #ifdef __cplusplus
65 } /* extern "C" */
66 #endif
67 
68 #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)