25#ifndef _WRAPS_C_TFCPARTICLE_H_
26#define _WRAPS_C_TFCPARTICLE_H_
39 int MAPPEDPARTICLEDATA_NONE;
40 int MAPPEDPARTICLEDATA_POSITION_X;
41 int MAPPEDPARTICLEDATA_POSITION_Y;
42 int MAPPEDPARTICLEDATA_POSITION_Z;
43 int MAPPEDPARTICLEDATA_VELOCITY_X;
44 int MAPPEDPARTICLEDATA_VELOCITY_Y;
45 int MAPPEDPARTICLEDATA_VELOCITY_Z;
46 int MAPPEDPARTICLEDATA_VELOCITY_SPEED;
47 int MAPPEDPARTICLEDATA_SPECIES;
48 int MAPPEDPARTICLEDATA_FORCE_X;
49 int MAPPEDPARTICLEDATA_FORCE_Y;
50 int MAPPEDPARTICLEDATA_FORCE_Z;
64 int mappedParticleData;
75 tfFloatP_t *target_energy;
76 tfFloatP_t minimum_radius;
79 unsigned char dynamics;
84 unsigned int numSpecies;
91 unsigned char PARTICLE_NEWTONIAN;
92 unsigned char PARTICLE_OVERDAMPED;
100 int PARTICLE_FROZEN_X;
101 int PARTICLE_FROZEN_Y;
102 int PARTICLE_FROZEN_Z;
Handle to a ClusterParticleHandle instance.
Definition tfCCluster.h:58
Handle to a ClusterParticleType instance.
Definition tfCCluster.h:66
Mapped particle data enums.
Definition tfCParticle.h:38
Definition tfCParticle.h:90
Definition tfCParticle.h:95
Handle to a ParticleHandle instance.
Definition tfCParticle.h:111
Handle to a ParticleList instance.
Definition tfCParticle.h:127
Handle to a ParticleType instance.
Definition tfCParticle.h:119
Handle to a ParticleTypeList instance.
Definition tfCParticle.h:135
Particle type definition in Tissue Forge C.
Definition tfCParticle.h:71
Particle type style definition in Tissue Forge C.
Definition tfCParticle.h:57
Handle to a rendering::Style instance.
Definition tfCStyle.h:38
Handle to a state::SpeciesList instance.
Definition tfCSpecies.h:47
Handle to a state::StateVector instance.
Definition tfCStateVector.h:36
HRESULT tfParticleTypeList_setOwnsData(struct tfParticleTypeListHandle *handle, bool flag)
Set whether the list owns its data.
HRESULT tfParticleTypeList_destroy(struct tfParticleTypeListHandle *handle)
Destroy an instance.
HRESULT tfParticleType_isCluster(struct tfParticleTypeHandle *handle, bool *isCluster)
Test whether this type is a cluster type.
HRESULT tfParticleHandle_sphericalPositionPoint(struct tfParticleHandleHandle *handle, tfFloatP_t *origin, tfFloatP_t **position)
Calculates the particle's coordinates in spherical coordinates relative to a point.
HRESULT tfParticleHandle_getVelocity(struct tfParticleHandleHandle *handle, tfFloatP_t **velocity)
Get the particle velocity.
HRESULT tfParticleHandle_setFrozenY(struct tfParticleHandleHandle *handle, bool frozen)
Set whether the particle is frozen along the y-direction.
HRESULT tfParticleHandle_sphericalPosition(struct tfParticleHandleHandle *handle, tfFloatP_t **position)
Calculates the particle's coordinates in spherical coordinates relative to the center of the universe...
HRESULT tfParticleTypeList_hasType(struct tfParticleTypeListHandle *handle, struct tfParticleTypeHandle *ptype, bool *result)
Test whether the list has a particle type.
HRESULT tfParticleType_getNumParts(struct tfParticleTypeHandle *handle, int *numParts)
Get the number of particles that are a member of this type.
HRESULT tfParticleType_setParticleFlags(struct tfParticleTypeHandle *handle, unsigned int flags)
Set the particle flags.
HRESULT tfParticleTypeList_toString(struct tfParticleTypeListHandle *handle, char **str, unsigned int *numChars)
Get a JSON string representation.
HRESULT tfParticleTypeList_hasId(struct tfParticleTypeListHandle *handle, int pid, bool *result)
Test whether the list has an id.
HRESULT tfParticleHandle_getFlags(struct tfParticleHandleHandle *handle, int *flags)
Get the particle flags.
HRESULT tfParticleHandle_getTypeId(struct tfParticleHandleHandle *handle, int *tid)
Get the particle type id.
HRESULT tfParticleTypeList_getOwnsData(struct tfParticleTypeListHandle *handle, bool *result)
Get whether the list owns its data.
HRESULT tfParticleList_insertP(struct tfParticleListHandle *handle, struct tfParticleHandleHandle *particle, unsigned int *index)
Inserts the given particle into the list, returns the index of the particle.
HRESULT tfParticleList_getAll(struct tfParticleListHandle *handle)
Initialize an instance populated with all current particles.
HRESULT tfParticleType_getMinimumRadius(struct tfParticleTypeHandle *handle, tfFloatP_t *minimum_radius)
Get the default minimum radius of this type.
HRESULT tfParticleHandle_setRadius(struct tfParticleHandleHandle *handle, tfFloatP_t radius)
Set the particle radius.
HRESULT tfParticleHandle_ge(struct tfParticleHandleHandle *lhs, struct tfParticleHandleHandle *rhs, bool *result)
HRESULT tfParticleHandle_getType(struct tfParticleHandleHandle *handle, struct tfParticleTypeHandle *typeHandle)
Gets the particle type of this handle.
HRESULT tfParticleTypeList_getMomentOfInertia(struct tfParticleTypeListHandle *handle, tfFloatP_t **moi)
Get the moment of inertia of the particles.
HRESULT tfParticleType_getPotentialEnergy(struct tfParticleTypeHandle *handle, tfFloatP_t *potential_energy)
Get the potential energy of all particles of this type.
HRESULT tfParticleType_getMass(struct tfParticleTypeHandle *handle, tfFloatP_t *mass)
Get the type mass.
HRESULT tfParticleType_initD(struct tfParticleTypeHandle *handle, struct tfParticleTypeSpec pdef)
Initialize an instance from a definition.
HRESULT tfParticleList_initP(struct tfParticleListHandle *handle, struct tfParticleHandleHandle **particles, unsigned int numParts)
Initialize an instance with an array of particles.
HRESULT tfParticleHandle_eq(struct tfParticleHandleHandle *lhs, struct tfParticleHandleHandle *rhs, bool *result)
HRESULT tfParticleHandle_getAge(struct tfParticleHandleHandle *handle, tfFloatP_t *age)
Get the particle age.
HRESULT tfParticleHandle_setForceInit(struct tfParticleHandleHandle *handle, tfFloatP_t *force)
Set the particle initial force.
HRESULT tfParticleList_copy(struct tfParticleListHandle *source, struct tfParticleListHandle *destination)
Copy an instance.
HRESULT tfParticleType_ne(struct tfParticleTypeHandle *lhs, struct tfParticleTypeHandle *rhs, bool *result)
struct tfMappedParticleDataEnum tfMappedParticleDataEnum_init()
Initialize an instance.
HRESULT tfParticleType_getId(struct tfParticleTypeHandle *handle, int *id)
Get the type id. -1 if not registered.
HRESULT tfParticleType_hasPartId(struct tfParticleTypeHandle *handle, int pid, bool *result)
Test whether the type has an id.
HRESULT tfParticleType_setTypeFlags(struct tfParticleTypeHandle *handle, unsigned int flags)
Set the type flags.
HRESULT tfParticleType_str(struct tfParticleTypeHandle *handle, char **str, unsigned int *numChars)
Get a summary string of the type.
HRESULT tfParticleList_destroy(struct tfParticleListHandle *handle)
Destroy an instance.
HRESULT tfParticleType_getFrozenY(struct tfParticleTypeHandle *handle, bool *frozen)
Test whether this type is frozen along the y-direction.
HRESULT tfParticleHandle_setFrozenZ(struct tfParticleHandleHandle *handle, bool frozen)
Set whether the particle is frozen along the z-direction.
HRESULT tfParticleHandle_getPosition(struct tfParticleHandleHandle *handle, tfFloatP_t **position)
Get the particle position.
HRESULT tfParticleList_sphericalPositions(struct tfParticleListHandle *handle, tfFloatP_t **coordinates)
Get the spherical coordinates of each particle for a coordinate system at the center of the universe.
HRESULT tfParticleTypeList_sphericalPositionsO(struct tfParticleTypeListHandle *handle, tfFloatP_t *origin, tfFloatP_t **coordinates)
Get the spherical coordinates of each particle for a coordinate system with a specified origin.
HRESULT tfParticleType_setFrozenY(struct tfParticleTypeHandle *handle, bool frozen)
Set whether this type is frozen along the y-direction.
HRESULT tfParticleList_item(struct tfParticleListHandle *handle, unsigned int i, struct tfParticleHandleHandle *item)
looks for the item at the given index and returns it if found, otherwise returns NULL
HRESULT tfParticleList_free(struct tfParticleListHandle *handle)
Free the memory associated with the parts list.
HRESULT tfParticleTypeList_getRadiusOfGyration(struct tfParticleTypeListHandle *handle, tfFloatP_t *rog)
Get the radius of gyration of the particles.
HRESULT tfParticleType_getFrozenZ(struct tfParticleTypeHandle *handle, bool *frozen)
Test whether this type is frozen along the z-direction.
HRESULT tfParticleHandle_split(struct tfParticleHandleHandle *handle, struct tfParticleHandleHandle *newParticleHandle)
Splits a single particle into two.
HRESULT tfParticleHandle_getFrozenX(struct tfParticleHandleHandle *handle, bool *frozen)
Test whether the particle is frozen along the x-direction.
HRESULT tfParticleType_getParticleFlags(struct tfParticleTypeHandle *handle, unsigned int *flags)
Get the particle flags.
HRESULT tfParticleHandle_getStyle(struct tfParticleHandleHandle *handle, struct tfRenderingStyleHandle *style)
Get the particle style. Fails if no style is set.
HRESULT tfParticleHandle_getBondedNeighbors(struct tfParticleHandleHandle *handle, struct tfParticleHandleHandle **neighbors, int *numNeighbors)
Get a list of all bonded neighbors.
HRESULT tfParticleType_hasPart(struct tfParticleTypeHandle *handle, struct tfParticleHandleHandle *part, bool *result)
Test whether the type has a particle.
HRESULT tfParticleType_getFrozenX(struct tfParticleTypeHandle *handle, bool *frozen)
Test whether this type is frozen along the x-direction.
HRESULT tfParticleHandle_neighborsD(struct tfParticleHandleHandle *handle, tfFloatP_t distance, struct tfParticleHandleHandle **neighbors, int *numNeighbors)
Get the particles within a distance of a particle.
HRESULT tfParticleTypeList_getPositions(struct tfParticleTypeListHandle *handle, tfFloatP_t **positions)
Get the particle positions.
HRESULT tfParticleList_initI(struct tfParticleListHandle *handle, int *parts, unsigned int numParts)
Initialize an instance with an array of particle ids.
HRESULT tfParticleHandle_distance(struct tfParticleHandleHandle *handle, struct tfParticleHandleHandle *other, tfFloatP_t *distance)
Calculates the distance to another particle.
HRESULT tfParticleType_getParticle(struct tfParticleTypeHandle *handle, int i, struct tfParticleHandleHandle *phandle)
Get the i'th particle that's a member of this type.
HRESULT tfParticleType_getTypeFlags(struct tfParticleTypeHandle *handle, unsigned int *flags)
Get the type flags.
HRESULT tfParticleHandle_lt(struct tfParticleHandleHandle *lhs, struct tfParticleHandleHandle *rhs, bool *result)
HRESULT tfParticleType_getFrozen(struct tfParticleTypeHandle *handle, bool *frozen)
Test whether this type is frozen.
HRESULT tfParticleHandle_setVelocity(struct tfParticleHandleHandle *handle, tfFloatP_t *velocity)
Set the particle velocity.
HRESULT tfParticleHandle_setFrozen(struct tfParticleHandleHandle *handle, bool frozen)
Set whether the particle is frozen.
HRESULT tfParticleTypeList_init(struct tfParticleTypeListHandle *handle)
Initialize an empty instance.
HRESULT tfParticleType_setFrozenZ(struct tfParticleTypeHandle *handle, bool frozen)
Set whether this type is frozen along the z-direction.
HRESULT tfParticleHandle_neighborsT(struct tfParticleHandleHandle *handle, struct tfParticleTypeHandle *ptypes, int numTypes, struct tfParticleHandleHandle **neighbors, int *numNeighbors)
Get the particles of a set of types within the global cutoff distance.
HRESULT tfParticleFlags_init(struct tfParticleFlagsHandle *handle)
Initialize an instance.
HRESULT tfParticleList_fromString(struct tfParticleListHandle *handle, const char *str)
Create from a JSON string representation.
HRESULT tfParticleHandle_getId(struct tfParticleHandleHandle *handle, int *pid)
Get the particle id.
HRESULT tfParticleList_hasPart(struct tfParticleListHandle *handle, struct tfParticleHandleHandle *part, bool *result)
Test whether the list has a particle.
HRESULT tfParticleList_getCenterOfMass(struct tfParticleListHandle *handle, tfFloatP_t **com)
Get the center of mass of the particles.
HRESULT tfParticleHandle_getClusterId(struct tfParticleHandleHandle *handle, int *cid)
Get the particle cluster id. -1 if particle is not a cluster.
HRESULT tfParticleHandle_toString(struct tfParticleHandleHandle *handle, char **str, unsigned int *numChars)
Get a JSON string representation.
HRESULT tfParticleTypeList_free(struct tfParticleTypeListHandle *handle)
Free the memory associated with the list.
HRESULT tfParticleList_sphericalPositionsO(struct tfParticleListHandle *handle, tfFloatP_t *origin, tfFloatP_t **coordinates)
Get the spherical coordinates of each particle for a coordinate system with a specified origin.
HRESULT tfParticleTypeList_insertP(struct tfParticleTypeListHandle *handle, struct tfParticleTypeHandle *ptype, unsigned int *index)
Inserts the given particle type into the list, returns the index of the particle.
HRESULT tfParticleHandle_destroy(struct tfParticleHandleHandle *handle)
Destroys the handle instance.
HRESULT tfParticleHandle_getMass(struct tfParticleHandleHandle *handle, tfFloatP_t *mass)
Get the particle mass.
unsigned int * tfParticle_Colors()
Get an array of available particle type colors.
HRESULT tfParticleType_createParticle(struct tfParticleTypeHandle *handle, int *pid, tfFloatP_t *position, tfFloatP_t *velocity)
Particle constructor.
HRESULT tfParticleType_setMass(struct tfParticleTypeHandle *handle, tfFloatP_t mass)
Set the type mass.
HRESULT tfParticleTypeList_setMutable(struct tfParticleTypeListHandle *handle, bool flag)
Set whether the list is mutable.
HRESULT tfParticleList_getMomentOfInertia(struct tfParticleListHandle *handle, tfFloatP_t **moi)
Get the moment of inertia of the particles.
HRESULT tfParticleTypeList_insertI(struct tfParticleTypeListHandle *handle, int item, unsigned int *index)
Insert the given id into the list, returns the index of the item.
HRESULT tfParticleType_lt(struct tfParticleTypeHandle *lhs, struct tfParticleTypeHandle *rhs, bool *result)
HRESULT tfParticleTypeList_getParticles(struct tfParticleTypeListHandle *handle, struct tfParticleListHandle *plist)
Get a particle list populated with particles of all current particle types.
HRESULT tfParticleList_getOwnsData(struct tfParticleListHandle *handle, bool *result)
Get whether the list owns its data.
HRESULT tfParticleDynamics_init(struct tfParticleDynamicsEnumHandle *handle)
Initialize an instance.
HRESULT tfParticleType_eq(struct tfParticleTypeHandle *lhs, struct tfParticleTypeHandle *rhs, bool *result)
HRESULT tfParticleTypeList_initP(struct tfParticleTypeListHandle *handle, struct tfParticleTypeHandle **parts, unsigned int numParts)
Initialize an instance with an array of particle types.
HRESULT tfParticleType_registerType(struct tfParticleTypeHandle *handle)
Registers a type with the engine.
HRESULT tfParticleList_getIds(struct tfParticleListHandle *handle, int **parts)
Get the particle ids in the list.
HRESULT tfParticleHandle_getForce(struct tfParticleHandleHandle *handle, tfFloatP_t **force)
Get the particle force.
HRESULT tfParticleTypeList_copy(struct tfParticleTypeListHandle *source, struct tfParticleTypeListHandle *destination)
Copy an instance.
HRESULT tfParticleHandle_ne(struct tfParticleHandleHandle *lhs, struct tfParticleHandleHandle *rhs, bool *result)
HRESULT tfParticleType_setTargetTemperature(struct tfParticleTypeHandle *handle, tfFloatP_t temperature)
Set the target temperature of this type.
HRESULT tfParticleHandle_hasSpecies(struct tfParticleHandleHandle *handle, bool *flag)
Test whether a particle has species.
HRESULT tfParticleType_setName(struct tfParticleTypeHandle *handle, const char *name)
Set the type name. Throws an error if the type is already registered.
HRESULT tfParticleList_getMutable(struct tfParticleListHandle *handle, bool *result)
Get whether the list is mutable.
HRESULT tfParticleType_setDynamics(struct tfParticleTypeHandle *handle, unsigned char dynamics)
Set the default dynamics of particles of this type.
HRESULT tfParticleList_toString(struct tfParticleListHandle *handle, char **str, unsigned int *numChars)
Get a JSON string representation.
HRESULT tfParticleType_getFromId(struct tfParticleTypeHandle *handle, unsigned int pid)
Get a registered particle type by type id.
HRESULT tfParticleType_getTargetTemperature(struct tfParticleTypeHandle *handle, tfFloatP_t *temperature)
Get the target temperature of this type.
HRESULT tfParticleHandle_getName(struct tfParticleHandleHandle *handle, char **name, unsigned int *numChars)
Get the particle name.
HRESULT tfParticleTypeList_fromString(struct tfParticleTypeListHandle *handle, const char *str)
Create from a JSON string representation.
HRESULT tfParticleType_newType(struct tfParticleTypeHandle *handle, const char *_name, struct tfParticleTypeHandle *newTypehandle)
Particle type constructor.
HRESULT tfParticleList_insertI(struct tfParticleListHandle *handle, int item, unsigned int *index)
Insert the given id into the list, returns the index of the item.
HRESULT tfParticleHandle_getRadius(struct tfParticleHandleHandle *handle, tfFloatP_t *radius)
Get the particle radius.
HRESULT tfParticleHandle_destroyParticle(struct tfParticleHandleHandle *handle)
Destroys the particle, and removes it from inventory.
HRESULT tfParticleHandle_become(struct tfParticleHandleHandle *handle, struct tfParticleTypeHandle *typeHandle)
Dynamically changes the type of an object. We can change the type of a ParticleType-derived object to...
HRESULT tfParticleHandle_setStyle(struct tfParticleHandleHandle *handle, struct tfRenderingStyleHandle *style)
Set the particle style.
HRESULT tfParticleType_factory(struct tfParticleTypeHandle *handle, int **pids, unsigned int nr_parts, tfFloatP_t *positions, tfFloatP_t *velocities)
Particle factory constructor, for making lots of particles quickly.
HRESULT tfParticleType_getRadius(struct tfParticleTypeHandle *handle, tfFloatP_t *radius)
Get the type radius.
HRESULT tfParticleTypeList_getForces(struct tfParticleTypeListHandle *handle, tfFloatP_t **forces)
Get the forces acting on the particles.
HRESULT tfParticleType_getTemperature(struct tfParticleTypeHandle *handle, tfFloatP_t *temperature)
Get the temperature of this type.
HRESULT tfParticleType_getTargetEnergy(struct tfParticleTypeHandle *handle, tfFloatP_t *target_energy)
Get the target energy of all particles of this type.
HRESULT tfParticleList_getNumParts(struct tfParticleListHandle *handle, unsigned int *numParts)
Get the number of particles.
HRESULT tfParticleList_getVirial(struct tfParticleListHandle *handle, tfFloatP_t **virial)
Get the virial tensor of the particles.
HRESULT tfParticleType_getDynamics(struct tfParticleTypeHandle *handle, unsigned char *dynamics)
Get the default dynamics of particles of this type.
HRESULT tfParticleType_getSpecies(struct tfParticleTypeHandle *handle, struct tfStateSpeciesListHandle *slist)
Get the type species. Fails if the type does not have species.
HRESULT tfParticleType_setTargetEnergy(struct tfParticleTypeHandle *handle, tfFloatP_t target_energy)
Set the target energy of all particles of this type.
HRESULT tfParticleList_getPositions(struct tfParticleListHandle *handle, tfFloatP_t **positions)
Get the particle positions.
HRESULT tfParticleHandle_setMass(struct tfParticleHandleHandle *handle, tfFloatP_t mass)
Set the particle mass.
HRESULT tfParticleTypeList_getMutable(struct tfParticleTypeListHandle *handle, bool *result)
Get whether the list is mutable.
HRESULT tfParticleList_setMutable(struct tfParticleListHandle *handle, bool flag)
Set whether the list is mutable.
HRESULT tfParticleType_getStyle(struct tfParticleTypeHandle *handle, struct tfRenderingStyleHandle *style)
Get the type style.
HRESULT tfParticleType_setRadius(struct tfParticleTypeHandle *handle, tfFloatP_t radius)
Set the type radius.
HRESULT tfParticleHandle_getFrozen(struct tfParticleHandleHandle *handle, bool *frozen)
Test whether the particle is frozen.
HRESULT tfParticleTypeList_item(struct tfParticleTypeListHandle *handle, unsigned int i, struct tfParticleTypeHandle *item)
looks for the item at the given index and returns it if found, otherwise returns NULL
HRESULT tfParticleHandle_relativePosition(struct tfParticleHandleHandle *handle, tfFloatP_t *origin, tfFloatP_t **position)
Computes the relative position with respect to an origin while.
HRESULT tfParticleHandle_splitTypes(struct tfParticleHandleHandle *handle, struct tfParticleHandleHandle *newParticleHandle, struct tfParticleTypeHandle *parentTypeHandle, struct tfParticleTypeHandle *childTypeHandle)
Splits a single particle into two and optionally with different resulting particle types.
HRESULT tfParticleHandle_neighborsDT(struct tfParticleHandleHandle *handle, tfFloatP_t distance, struct tfParticleTypeHandle *ptypes, int numTypes, struct tfParticleHandleHandle **neighbors, int *numNeighbors)
Get the particles of a set of types within a distance of a particle.
HRESULT tfParticleType_toString(struct tfParticleTypeHandle *handle, char **str, unsigned int *numChars)
Get a JSON string representation.
HRESULT tfParticleHandle_toCluster(struct tfParticleHandleHandle *handle, struct tfClusterParticleHandleHandle *chandle)
Convert the particle to a cluster; fails if particle is not a cluster.
HRESULT tfParticleList_setOwnsData(struct tfParticleListHandle *handle, bool flag)
Set whether the list owns its data.
HRESULT tfParticleType_init(struct tfParticleTypeHandle *handle)
Initialize an instance.
HRESULT tfParticleTypeList_getIds(struct tfParticleTypeListHandle *handle, int **parts)
Get the particle type ids in the list.
HRESULT tfParticleType_setFrozen(struct tfParticleTypeHandle *handle, bool frozen)
Set whether this type is frozen.
struct tfParticleTypeSpec tfParticleTypeSpec_init()
Get a default definition.
HRESULT tfParticleType_setMinimumRadius(struct tfParticleTypeHandle *handle, tfFloatP_t minimum_radius)
Set the default minimum radius of this type.
HRESULT tfParticleHandle_hasStyle(struct tfParticleHandleHandle *handle, bool *hasStyle)
Test whether the particle has a style.
HRESULT tfParticleHandle_getName2(struct tfParticleHandleHandle *handle, char **name, unsigned int *numChars)
Get the particle second name.
HRESULT tfParticleHandle_getForceInit(struct tfParticleHandleHandle *handle, tfFloatP_t **force)
Get the particle initial force.
HRESULT tfParticleType_ge(struct tfParticleTypeHandle *lhs, struct tfParticleTypeHandle *rhs, bool *result)
HRESULT tfParticleType_fromString(struct tfParticleTypeHandle *handle, const char *str)
Create from a JSON string representation.
HRESULT tfParticleType_isRegistered(struct tfParticleTypeHandle *handle, bool *isRegistered)
Tests whether this type is registered.
struct tfParticleTypeStyleSpec tfParticleTypeStyleSpec_init()
Get a default definition.
HRESULT tfParticleType_le(struct tfParticleTypeHandle *lhs, struct tfParticleTypeHandle *rhs, bool *result)
HRESULT tfParticleHandle_le(struct tfParticleHandleHandle *lhs, struct tfParticleHandleHandle *rhs, bool *result)
HRESULT tfParticleList_extend(struct tfParticleListHandle *handle, struct tfParticleListHandle *other)
inserts the contents of another list
HRESULT tfParticleTypeList_hasPart(struct tfParticleTypeListHandle *handle, struct tfParticleHandleHandle *part, bool *result)
Test whether the list has a particle.
HRESULT tfParticleHandle_init(struct tfParticleHandleHandle *handle, unsigned int pid)
Initialize an instance.
HRESULT tfParticleTypeList_getVelocities(struct tfParticleTypeListHandle *handle, tfFloatP_t **velocities)
Get the particle velocities.
HRESULT tfParticleType_setSpecies(struct tfParticleTypeHandle *handle, struct tfStateSpeciesListHandle *slist)
Set the type species.
HRESULT tfParticleType_hasSpecies(struct tfParticleTypeHandle *handle, bool *flag)
Test whether the type has species.
HRESULT tfParticleTypeList_getVirial(struct tfParticleTypeListHandle *handle, tfFloatP_t *virial)
Get the virial tensor of the particles.
HRESULT tfParticleList_getVelocities(struct tfParticleListHandle *handle, tfFloatP_t **velocities)
Get the particle velocities.
HRESULT tfParticleHandle_setSpecies(struct tfParticleHandleHandle *handle, struct tfStateStateVectorHandle *svec)
Set the state vector.
HRESULT tfParticleHandle_setPosition(struct tfParticleHandleHandle *handle, tfFloatP_t *position)
Set the particle position.
HRESULT tfParticleTypeList_extend(struct tfParticleTypeListHandle *handle, struct tfParticleTypeListHandle *other)
inserts the contents of another list
HRESULT tfParticleType_setStyle(struct tfParticleTypeHandle *handle, struct tfRenderingStyleHandle *style)
Set the type style.
HRESULT tfParticleList_getForces(struct tfParticleListHandle *handle, tfFloatP_t **forces)
Get the forces acting on the particles.
HRESULT tfParticleType_setFrozenX(struct tfParticleTypeHandle *handle, bool frozen)
Set whether this type is frozen along the x-direction.
HRESULT tfParticleTypeList_sphericalPositions(struct tfParticleTypeListHandle *handle, tfFloatP_t **coordinates)
Get the spherical coordinates of each particle for a coordinate system at the center of the universe.
HRESULT tfParticleTypeList_initI(struct tfParticleTypeListHandle *handle, int *parts, unsigned int numParts)
Initialize an instance with an array of particle type ids.
HRESULT tfParticleList_init(struct tfParticleListHandle *handle)
Initialize an empty instance.
HRESULT tfParticleHandle_getFrozenZ(struct tfParticleHandleHandle *handle, bool *frozen)
Test whether the particle is frozen along the z-direction.
HRESULT tfParticleTypeList_getAll(struct tfParticleTypeListHandle *handle)
Initialize an instance populated with all current particles.
HRESULT tfParticleTypeList_remove(struct tfParticleTypeListHandle *handle, int id)
Looks for the item with the given id and deletes it from the list.
HRESULT tfParticleList_getCentroid(struct tfParticleListHandle *handle, tfFloatP_t **cent)
Get the centroid of the particles.
HRESULT tfParticleType_toCluster(struct tfParticleTypeHandle *handle, struct tfClusterParticleTypeHandle *chandle)
Convert the type to a cluster; fails if the type is not a cluster.
HRESULT tfParticleType_FindFromName(struct tfParticleTypeHandle *handle, const char *name)
Get a registered particle type by type name.
HRESULT tfParticleHandle_setFrozenX(struct tfParticleHandleHandle *handle, bool frozen)
Set whether the particle is frozen along the x-direction.
HRESULT tfParticleType_getKineticEnergy(struct tfParticleTypeHandle *handle, tfFloatP_t *kinetic_energy)
Get the kinetic energy of all particles of this type.
HRESULT tfParticleList_hasId(struct tfParticleListHandle *handle, int pid, bool *result)
Test whether the list has an id.
HRESULT tfParticleType_createParticleS(struct tfParticleTypeHandle *handle, int *pid, const char *str)
Particle constructor.
HRESULT tfParticleTypeList_getCentroid(struct tfParticleTypeListHandle *handle, tfFloatP_t **cent)
Get the centroid of the particles.
HRESULT tfParticle_Verify()
Iterates over all parts, does a verify.
HRESULT tfParticleList_remove(struct tfParticleListHandle *handle, int id)
Looks for the item with the given id and deletes it from the list.
HRESULT tfParticleHandle_getFrozenY(struct tfParticleHandleHandle *handle, bool *frozen)
Test whether the particle is frozen along the y-direction.
HRESULT tfParticleTypeList_getNumParts(struct tfParticleTypeListHandle *handle, unsigned int *numParts)
Get the number of particle types.
HRESULT tfParticleType_getName(struct tfParticleTypeHandle *handle, char **name, unsigned int *numChars)
Get the type name.
HRESULT tfParticleHandle_gt(struct tfParticleHandleHandle *lhs, struct tfParticleHandleHandle *rhs, bool *result)
HRESULT tfParticleList_getRadiusOfGyration(struct tfParticleListHandle *handle, tfFloatP_t *rog)
Get the radius of gyration of the particles.
HRESULT tfParticleHandle_getSpecies(struct tfParticleHandleHandle *handle, struct tfStateStateVectorHandle *svec)
Get the state vector. Fails if the particle does not have a state vector.
HRESULT tfParticleType_gt(struct tfParticleTypeHandle *lhs, struct tfParticleTypeHandle *rhs, bool *result)
HRESULT tfParticleTypeList_getCenterOfMass(struct tfParticleTypeListHandle *handle, tfFloatP_t **com)
Get the center of mass of the particles.
HRESULT tfParticleHandle_str(struct tfParticleHandleHandle *handle, char **str, unsigned int *numChars)
Get a summary string of the particle.