![]() |
COGS
Computer Graphics Structures library
|
Namespace of "Computer Graphic Structures" library, which implement many core classes and structures. More...
Namespaces | |
| color | |
| Definitions of color constants. | |
| io | |
| Definitions for cogs file format. | |
Data Structures | |
| class | AabbHierarchy |
| Space-partitioning data structure for point clouds. More... | |
| class | BoneTransform |
| Class used for effective management and manipulation with bone transformation. More... | |
| class | C_PointCloud |
| Adapter for cogs::PointCloud structure. More... | |
| class | C_Scan |
| Adapter for cogs::Scan structure. More... | |
| struct | Color3b |
| Holds three color channels in uint8 format in range 0-255. More... | |
| struct | Color3f |
| Holds three color channels in float format in range 0-1. More... | |
| struct | Color3hex |
| Holds three color channels in hexadecimal string representation. More... | |
| struct | Color4b |
| Holds four color channels in uint8 format in range 0-255. More... | |
| struct | Color4f |
| Holds four color channels in float format in range 0-1. More... | |
| struct | Color4hex |
| Holds four color channels in hexadecimal string representation. More... | |
| class | DynamicScan |
| Scan able to change and remember its current transformation. More... | |
| class | Exporter |
| Universal file exporter for COGS structures. More... | |
| struct | Frustum |
| Definition of a 3-dimensional view frustum - a square-based 3D pyramid truncated by parallel planes. More... | |
| class | Grid |
| Organizational structure of values in a 2 dimensional grid. More... | |
| class | Importer |
| Universal file importer for COGS structures. More... | |
| class | Interpolator |
| Wrapper class for key frame animation offering effective interpolation between values in time. More... | |
| class | KdTree |
| Space-partitioning data structure for point clouds. More... | |
| struct | Mesh |
| A Mesh is structure containing a point-cloud a triangulation and a material. Not all of these are required. More... | |
| struct | MeshOperations |
| A class that provides common operations over cogs::Mesh. More... | |
| class | MetaDataSerializer |
| MetaDataSerializer - serialize read and write cogs::MetaData. More... | |
| class | Octree |
| Space-partitioning data structure for point clouds. More... | |
| class | PointCloud |
| Management class for a set of data points in a 3D space. More... | |
| struct | PointCloudProperty |
| Type used to store information about property. More... | |
| class | PointCloudSelector |
| API for selecting points from a point cloud by ray-casting. More... | |
| struct | ScalePreservingTransform |
| Class used for effective management of transformation matrix by handling translation, rotation. More... | |
| class | ScalePreservingTransformSerializer |
| ScalePreservingTransformSerializer - serialize read and write cogs::ScalePreservingTransform. More... | |
| class | Scan |
| Set of 3D data points which are additionally organized over 2D grid. More... | |
| struct | ScanCameraParams |
| Parameters of a camera used to capture Scan. More... | |
| class | Skeleton |
| 3D Graph structure, usually representing topology of a 3D model. More... | |
| struct | SkeletonPose |
| Structure used for storage of specific configuration of bone transformations in a skeleton. More... | |
| class | Transform |
| Class used for effective management of transformation matrix by handling translation, rotation and scaling separately. More... | |
| class | Triangulation |
| A Triangulation is a vector of faces (triplets of indices from a point-cloud). More... | |
Typedefs | |
| using | SkinningData = std::vector< cogs::VertexSkinData > |
Enumerations | |
| enum | ColorMap { ColorMap::rainbow = 0, ColorMap::thermal = 1, ColorMap::blue_red = 2, ColorMap::red_green = 3, ColorMap::scattered = 4, ColorMap::grayscale = 5, ColorMap::colorful = 6, ColorMap::colorful_bright = 7 } |
| Color mapping options. More... | |
| enum | DataType { DataType::UNKNOWN, DataType::FLOAT, DataType::FVEC3, DataType::FVEC2, DataType::COLOR3F, DataType::COLOR4F } |
| Identifier of data types. More... | |
| enum | MaterialTextures : uint8_t { diffuse, normal, displace, _count } |
| enum | MaterialColors : uint8_t { ambient, diffuse, specular, _count } |
Functions | |
| std::vector< geom::LineSegment3 > | BonesToLines (const std::vector< cogs::Bone *> &bones) |
| COGS_API bool | operator== (const Color3b &a, const Color3b &b) |
| COGS_API bool | operator== (const Color4b &a, const Color4b &b) |
| COGS_API bool | operator== (const Color3f &a, const Color3f &b) |
| COGS_API bool | operator== (const Color4f &a, const Color4f &b) |
| COGS_API bool | operator== (const Color3hex &a, const Color3hex &b) |
| COGS_API bool | operator== (const Color4hex &a, const Color4hex &b) |
| COGS_API bool | operator!= (const Color3b &a, const Color3b &b) |
| COGS_API bool | operator!= (const Color4b &a, const Color4b &b) |
| COGS_API bool | operator!= (const Color3f &a, const Color3f &b) |
| COGS_API bool | operator!= (const Color4f &a, const Color4f &b) |
| COGS_API bool | operator!= (const Color3hex &a, const Color3hex &b) |
| COGS_API bool | operator!= (const Color4hex &a, const Color4hex &b) |
| COGS_API Color3f | operator* (const float factor, const Color3f &col) |
| COGS_API Color3f | operator* (const Color3f &col, const float factor) |
| COGS_API Color4f | operator* (const float factor, const Color4f &col) |
| COGS_API Color4f | operator* (const Color4f &col, const float factor) |
| COGS_API Color3f | Interpolate (const Color3f &col1, const Color3f &col2, float weight) |
| COGS_API std::string | ColorMapToString (ColorMap map) |
| Returns string representation of ColorMap enum value. | |
| COGS_API cogs::Color3f | MapValueToColor (float value, ColorMap mapping_func) |
| Converts float value in range <0.0, 1.0> to color, depending on selected mapping function. | |
| COGS_API std::vector< cogs::Color3f > | MapValuesToColors (const std::vector< float > &values, ColorMap mapping_func) |
| Converts float values in range <0.0, 1.0> to colors, depending on selected mapping function. | |
| COGS_API std::vector< cogs::Color3f > | MapValuesToColors (const std::vector< float > &values, std::function< float(float)> process_func, ColorMap mapping_func) |
| For each float from vector applies processing function and converts value to color afterwards, depending on selected mapping function. | |
| COGS_API std::size_t | GetDataTypeSize (const DataType &dtype) |
| Returns size of type denoted by DataType identifier. | |
| bool COGS_API | ExportBVH (const std::string &filename, const cogs::Skeleton &skeleton) |
| Exports skeleton bone hierarchy to BVH file. | |
| template<typename Type > | |
| Type | Interpolate (const Type val1, const Type val2, const float weight) |
| glm::quat | Interpolate (const glm::quat val1, const glm::quat val2, const float weight) |
| template<typename Type > | |
| glm::quat | InterpolateCubic (const Type val1, const Type val2, const Type val3, const Type val4, const float weight) |
| std::vector< glm::vec4 > COGS_API | CalculateTangentArray (const cogs::Mesh &mesh) |
| Calculates tangent vectors for each point of an input mesh. More... | |
| cogs::Mesh COGS_API | JoinMeshes (const std::vector< cogs::Mesh > &meshes_to_join) |
| COGS_API geom::Aabb3 | GetPointCloudAabb (const PointCloud &cloud) |
| COGS_API void | ErasePointsOutsideAabb (const geom::Aabb3 &aabb, PointCloud &cloud) |
| COGS_API std::vector< geom::LineSegment3 > | ToLineSegments (const cogs::Skeleton &skeleton) |
| Converts bones of skeleton to the array of line segments ordered by bone ids. | |
| COGS_API std::vector< cogs::Skeleton > | SplitIntoSingleBoneSkeletons (const cogs::Skeleton &skeleton) |
| Splits skeleton into one bone skeletons. | |
| COGS_API geom::Aabb3 | GetAabb3 (const Skeleton &skeleton) |
| Returns bounding box wrapping all skeleton bones. | |
Namespace of "Computer Graphic Structures" library, which implement many core classes and structures.
|
strong |
Color mapping options.
|
strong |
| std::vector<glm::vec4> COGS_API cogs::CalculateTangentArray | ( | const cogs::Mesh & | mesh | ) |
Calculates tangent vectors for each point of an input mesh.