![]() |
Blue Brain BioExplorer
|
Classes | |
class | Assembly |
The Assembly class is a container for biological entities (proteins, membranes, sugars, etc.) More... | |
class | GeneralSettings |
GeneralSettings is a singleton class that holds general settings for the plugin. More... | |
class | Node |
The Node class. More... | |
class | SDFGeometries |
The SDFGeometries abstract class is used as a parent to any assembly that potentially requires the signed-distance field technique. More... | |
class | BezierShape |
class | CubeShape |
class | FanShape |
class | HelixShape |
class | MeshShape |
class | PlaneShape |
class | PointShape |
class | RNAShape |
class | Shape |
The shape class allows the creation of 3D shapes generated by a number of element instances. Shapes can be a sphere, a cube, based on a mesh, etc. Elements are molecules loaded from PDB files. More... | |
class | SinusoidShape |
class | SphereShape |
class | SphericalCellDiffusionShape |
class | ThreadSafeContainer |
The ThreadSafeContainer class is used to load large datasets in parallel. Every individual element is loaded in a separate thread and eventualy merged into a single Core model. More... | |
struct | GeometryNode |
struct | SDFMorphologyData |
struct | SimulationReport |
class | UniqueId |
The UniqueID class provides a way to get a unique identifier accross the application. More... | |
Typedefs | |
using | NodePtr = std::shared_ptr< Node > |
using | NodeMap = std::map< std::string, NodePtr > |
typedef std::shared_ptr< RNAShape > | RNAShapePtr |
typedef std::shared_ptr< Shape > | ShapePtr |
using | MaterialSet = std::set< size_t > |
using | Neighbours = std::set< size_t > |
using | AssemblyPtr = std::shared_ptr< Assembly > |
using | AssemblyMap = std::map< std::string, AssemblyPtr > |
using | AssemblyConstraint = std::pair< AssemblyConstraintType, AssemblyPtr > |
using | AssemblyConstraints = std::vector< AssemblyConstraint > |
using | GeometryNodes = std::map< uint64_t, GeometryNode > |
using | GeometryEdges = std::map< uint64_t, uint64_t > |
using | Bifurcations = std::map< uint64_t, uint64_ts > |
using | ThreadSafeContainers = std::vector< ThreadSafeContainer > |
using | SDFGeometriesPtr = std::shared_ptr< SDFGeometries > |
Enumerations | |
enum class | AssemblyConstraintType { inside = 0 , outside = 1 } |
enum class | ReportType { undefined = 0 , spike = 1 , soma = 2 , compartment = 3 , synapse_efficacy = 4 } |
enum class | XYZFileFormat { unspecified = 0 , xyz_binary = 1 , xyzr_binary = 2 , xyzrv_binary = 3 , xyz_ascii = 4 , xyzr_ascii = 5 , xyzrv_ascii = 6 } |
File format for export of atom coordinates, radius and charge. More... | |
Functions | |
std::string & | ltrim (std::string &s) |
Left trim of a string. More... | |
std::string & | rtrim (std::string &s) |
Right trim of a string. More... | |
std::string & | trim (std::string &s) |
Left and right trim of a string. More... | |
bool | isClipped (const core::Vector3d &position, const Vector4ds &clippingPlanes) |
isClipped Determine if a 3d position is inside a volume defined by clipping planes More... | |
void | setDefaultTransferFunction (core::Model &model, const core::Vector2d range={0.0, 1.0}, const double alpha=1.0) |
Set the default transfer function (Unipolar) to a given model. More... | |
Vector4ds | getClippingPlanes (const core::Scene &scene) |
Get the Clipping Planes from the scene. More... | |
Vector2d | doublesToVector2d (const doubles &value) |
Converts a vector of doubles into a 2D vector. More... | |
Vector3d | doublesToVector3d (const doubles &value) |
Converts a vector of doubles into a 3D vector. More... | |
doubles | vector3dToDoubles (const core::Vector3d &value) |
Converts a 3D vector to a vector of doubles. More... | |
Vector4d | doublesToVector4d (const doubles &value) |
Converts a vector of doubles into a 4D vector. More... | |
Quaterniond | doublesToQuaterniond (const doubles &values) |
Converts a vector of doubles into a Quaternion. More... | |
Vector4ds | doublesToVector4ds (const doubles &values) |
Converts a vector of doubles into vector of 4D vectors. More... | |
MolecularSystemAnimationDetails | doublesToMolecularSystemAnimationDetails (const doubles &values) |
Converts a vector of doubles into molecular system animation details. More... | |
CellAnimationDetails | doublesToCellAnimationDetails (const doubles &values) |
Converts a vector of doubles into cell animation details. More... | |
NeuronsReportParameters | doublesToNeuronsReportParametersDetails (const doubles &values) |
Converts a vector of doubles into neurons report parameters details. More... | |
std::vector< std::string > | split (const std::string &s, const std::string &delimiter=CONTENTS_DELIMITER) |
Splits a string according to the delimiter. More... | |
Transformation | combineTransformations (const core::Transformations &transformations) |
Combine a list of transformations. More... | |
Vector3d | sphereFilling (const double radius, const uint64_t occurrence, const uint64_t occurrences, const uint64_t rnd, core::Vector3d &position, core::Quaterniond &rotation, const double ratio=1.0) |
Returns a position and a rotation of a instance on a sphere using a sphere-filling algorithm. More... | |
bool | rayBoxIntersection (const core::Vector3d &origin, const core::Vector3d &direction, const core::Boxd &box, const double t0, const double t1, double &t) |
Intersection between a ray and a box. More... | |
double | sphereVolume (const double radius) |
double | cylinderVolume (const double height, const double radius) |
double | coneVolume (const double height, const double r1, const double r2) |
double | capsuleVolume (const double height, const double radius) |
Vector3f | transformVector3f (const Vector3f &v, const Matrix4f &transformation) |
Vector3ds | getPointsInSphere (const size_t nbPoints, const double innerRadius) |
double | mix (const double x, const double y, const double a) |
double | frac (const double x) |
Vector3d | frac (const Vector3d v) |
double | hash (double n) |
double | noise (const Vector3d &x) |
Vector3d | mod (const Vector3d &v, const int m) |
double | cells (const Vector3d &p, const double cellCount) |
double | worleyNoise (const Vector3d &p, double cellCount) |
size_t | getMaterialIdFromOrientation (const Vector3d &orientation) |
double | rnd0 () |
Return a random double between 0 and 1. More... | |
double | rnd1 () |
Return a random double between -0.5 and 0.5. More... | |
double | rnd2 (const uint64_t index) |
Return a predefined random double between -0.5 and 0.5. More... | |
double | rnd3 (const uint64_t index) |
Return a controlled random double between -0.5 and 0.5, currently a sinusoidal function. More... | |
Quaterniond | weightedRandomRotation (const core::Quaterniond &q, const uint64_t seed, const uint64_t index, const double weight) |
Randomly alters a quaternion according to the specified parameters. More... | |
Quaterniond | randomQuaternion (const uint64_t seed) |
Generate a random quaternion. More... | |
bool | andCheck (const uint32_t value, const uint32_t test) |
Check is test is part of value using the AND operator. More... | |
std::string | boolAsString (const bool value) |
Return a Yes/No string representation of a boolean. More... | |
double | valueFromDoubles (const doubles &array, const size_t index, const double defaultValue) |
Returns the value of an array of double at a given index. Default value if index is out of bounds. More... | |
Vector3d | getAlignmentToGrid (const double gridSize, const core::Vector3d &position) |
Align a 3D position to a given grid. More... | |
Variables | |
uint64_t | _faceIndex = 0 |
double | _surfaceCoveringProcess = 0.0 |
double | _instanceCoveringProcess = 0.0 |
const float | equalityEpsilon = 1e-6f |
const std::vector< double > | randoms |
using bioexplorer::common::AssemblyConstraint = typedef std::pair<AssemblyConstraintType, AssemblyPtr> |
using bioexplorer::common::AssemblyConstraints = typedef std::vector<AssemblyConstraint> |
using bioexplorer::common::AssemblyMap = typedef std::map<std::string, AssemblyPtr> |
using bioexplorer::common::AssemblyPtr = typedef std::shared_ptr<Assembly> |
using bioexplorer::common::Bifurcations = typedef std::map<uint64_t, uint64_ts> |
using bioexplorer::common::GeometryEdges = typedef std::map<uint64_t, uint64_t> |
using bioexplorer::common::GeometryNodes = typedef std::map<uint64_t, GeometryNode> |
using bioexplorer::common::MaterialSet = typedef std::set<size_t> |
using bioexplorer::common::Neighbours = typedef std::set<size_t> |
typedef std::map< std::string, NodePtr > bioexplorer::common::NodeMap |
typedef std::shared_ptr< Node > bioexplorer::common::NodePtr |
typedef std::shared_ptr<RNAShape> bioexplorer::common::RNAShapePtr |
Definition at line 78 of file RNAShape.h.
using bioexplorer::common::SDFGeometriesPtr = typedef std::shared_ptr<SDFGeometries> |
typedef std::shared_ptr<Shape> bioexplorer::common::ShapePtr |
using bioexplorer::common::ThreadSafeContainers = typedef std::vector<ThreadSafeContainer> |
|
strong |
|
strong |
|
strong |
File format for export of atom coordinates, radius and charge.
bool bioexplorer::common::andCheck | ( | const uint32_t | value, |
const uint32_t | test | ||
) |
std::string bioexplorer::common::boolAsString | ( | const bool | value | ) |
double bioexplorer::common::capsuleVolume | ( | const double | height, |
const double | radius | ||
) |
double bioexplorer::common::cells | ( | const Vector3d & | p, |
const double | cellCount | ||
) |
core::Transformation bioexplorer::common::combineTransformations | ( | const core::Transformations & | transformations | ) |
double bioexplorer::common::coneVolume | ( | const double | height, |
const double | r1, | ||
const double | r2 | ||
) |
double bioexplorer::common::cylinderVolume | ( | const double | height, |
const double | radius | ||
) |
details::CellAnimationDetails bioexplorer::common::doublesToCellAnimationDetails | ( | const doubles & | values | ) |
details::MolecularSystemAnimationDetails bioexplorer::common::doublesToMolecularSystemAnimationDetails | ( | const doubles & | values | ) |
details::NeuronsReportParameters bioexplorer::common::doublesToNeuronsReportParametersDetails | ( | const doubles & | values | ) |
core::Quaterniond bioexplorer::common::doublesToQuaterniond | ( | const doubles & | values | ) |
core::Vector2d bioexplorer::common::doublesToVector2d | ( | const doubles & | value | ) |
core::Vector3d bioexplorer::common::doublesToVector3d | ( | const doubles & | value | ) |
core::Vector4d bioexplorer::common::doublesToVector4d | ( | const doubles & | value | ) |
core::Vector3d bioexplorer::common::frac | ( | const Vector3d | v | ) |
core::Vector3d bioexplorer::common::getAlignmentToGrid | ( | const double | gridSize, |
const core::Vector3d & | position | ||
) |
Vector4ds bioexplorer::common::getClippingPlanes | ( | const core::Scene & | scene | ) |
size_t bioexplorer::common::getMaterialIdFromOrientation | ( | const Vector3d & | orientation | ) |
Vector3ds bioexplorer::common::getPointsInSphere | ( | const size_t | nbPoints, |
const double | innerRadius | ||
) |
bool bioexplorer::common::isClipped | ( | const core::Vector3d & | position, |
const Vector4ds & | clippingPlanes | ||
) |
std::string & bioexplorer::common::ltrim | ( | std::string & | s | ) |
double bioexplorer::common::mix | ( | const double | x, |
const double | y, | ||
const double | a | ||
) |
core::Vector3d bioexplorer::common::mod | ( | const Vector3d & | v, |
const int | m | ||
) |
core::Quaterniond bioexplorer::common::randomQuaternion | ( | const uint64_t | seed | ) |
bool bioexplorer::common::rayBoxIntersection | ( | const core::Vector3d & | origin, |
const core::Vector3d & | direction, | ||
const core::Boxd & | box, | ||
const double | t0, | ||
const double | t1, | ||
double & | t | ||
) |
Intersection between a ray and a box.
origin | Origin of the ray |
direction | Direction of the ray |
box | Box |
t0 | Initial t of the ray |
t1 | Final t of the ray |
t | Intersection value of t if an intersection if found |
double bioexplorer::common::rnd0 | ( | ) |
double bioexplorer::common::rnd1 | ( | ) |
double bioexplorer::common::rnd2 | ( | const uint64_t | index | ) |
double bioexplorer::common::rnd3 | ( | const uint64_t | index | ) |
std::string & bioexplorer::common::rtrim | ( | std::string & | s | ) |
void bioexplorer::common::setDefaultTransferFunction | ( | core::Model & | model, |
const core::Vector2d | range = {0.0, 1.0} , |
||
const double | alpha = 1.0 |
||
) |
core::Vector3d bioexplorer::common::sphereFilling | ( | const double | radius, |
const uint64_t | occurrence, | ||
const uint64_t | occurrences, | ||
const uint64_t | rnd, | ||
core::Vector3d & | position, | ||
core::Quaterniond & | rotation, | ||
const double | ratio = 1.0 |
||
) |
Returns a position and a rotation of a instance on a sphere using a sphere-filling algorithm.
radius | Radius of the sphere |
occurrences | Total number of instances |
rnd | Randomized occurrence of the instance (optional) |
position | Resulting position of the instance on the sphere |
rotation | Resulting orientation of the instance on the sphere |
ratio | Ratio of coverage of the sphere |
double bioexplorer::common::sphereVolume | ( | const double | radius | ) |
std::vector< std::string > bioexplorer::common::split | ( | const std::string & | s, |
const std::string & | delimiter = CONTENTS_DELIMITER |
||
) |
core::Vector3f bioexplorer::common::transformVector3f | ( | const Vector3f & | v, |
const Matrix4f & | transformation | ||
) |
std::string & bioexplorer::common::trim | ( | std::string & | s | ) |
double bioexplorer::common::valueFromDoubles | ( | const doubles & | array, |
const size_t | index, | ||
const double | defaultValue | ||
) |
doubles bioexplorer::common::vector3dToDoubles | ( | const core::Vector3d & | value | ) |
core::Quaterniond bioexplorer::common::weightedRandomRotation | ( | const core::Quaterniond & | q, |
const uint64_t | seed, | ||
const uint64_t | index, | ||
const double | weight | ||
) |
Randomly alters a quaternion according to the specified parameters.
q | Initial quaternion |
seed | Random seed |
index | Index of the quaternion (typically the index of the corresponding element instance) |
weight | Weight of the alteration |
double bioexplorer::common::worleyNoise | ( | const Vector3d & | p, |
double | cellCount | ||
) |
uint64_t bioexplorer::common::_faceIndex = 0 |
Definition at line 37 of file MeshShape.cpp.
double bioexplorer::common::_instanceCoveringProcess = 0.0 |
Definition at line 39 of file MeshShape.cpp.
double bioexplorer::common::_surfaceCoveringProcess = 0.0 |
Definition at line 38 of file MeshShape.cpp.
const float bioexplorer::common::equalityEpsilon = 1e-6f |
Definition at line 41 of file ThreadSafeContainer.cpp.
const std::vector<double> bioexplorer::common::randoms |