Enzo
Loading...
Searching...
No Matches
enzo::geo::Camera Class Reference

Camera primitive with only primitive-level attributes. More...

#include <Camera.h>

Inheritance diagram for enzo::geo::Camera:
enzo::geo::Primitive

Public Member Functions

 Camera (const Camera &other)
 
Cameraoperator= (const Camera &rhs)
 
PrimType getType () const override
 
std::shared_ptr< Primitiveclone () const override
 
TransformClass transformType () const override
 
void applyTransform (const bt::Matrix4 &mat, TransformClass transformClass) override
 
bt::Matrix4 getTransform () const
 
void setTransform (const bt::Matrix4 &xform)
 
- Public Member Functions inherited from enzo::geo::Primitive
 Primitive (const Primitive &other)
 
Primitiveoperator= (const Primitive &rhs)
 
void applyTransform (const Transform &transform, TransformClass transformClass)
 
virtual bool canMerge () const
 
virtual void merge (std::shared_ptr< Primitive > other)
 
void incrementVersion ()
 
virtual bool hasPoints () const
 
virtual ga::Offset getNumPoints () const
 
virtual PointOffsets getPoints ()
 
ga::AttributeHandle< bt::intT > addIntAttribute (ga::AttributeOwner owner, std::string name, bool intrinsic=false)
 
ga::AttributeHandleBool addBoolAttribute (ga::AttributeOwner owner, std::string name, bool intrinsic=false)
 
ga::AttributeHandle< bt::Vector3 > addVector3Attribute (ga::AttributeOwner owner, std::string name, bool intrinsic=false)
 
ga::AttributeHandle< bt::Matrix4 > addMatrix4Attribute (ga::AttributeOwner owner, std::string name, bool intrinsic=false)
 
std::shared_ptr< ga::AttributegetAttribByName (ga::AttributeOwner owner, std::string name, bool includeIntrinsics=false)
 
const size_t getNumAttributes (const ga::AttributeOwner owner) const
 
std::weak_ptr< const ga::AttributegetAttributeByIndex (ga::AttributeOwner owner, unsigned int index) const
 
bool attributeExists (ga::AttributeOwner owner, std::string name)
 
bt::String getPath () const
 
void setPath (const bt::String &path)
 

Additional Inherited Members

- Protected Member Functions inherited from enzo::geo::Primitive
virtual ga::attribVector & getAttributeStore (const ga::AttributeOwner &owner)
 
virtual const ga::attribVector & getAttributeStore (const ga::AttributeOwner &owner) const
 
ga::attribVector deepCopyAttributes (ga::attribVector source)
 
- Protected Attributes inherited from enzo::geo::Primitive
std::string path_ = "/prim"
 
ga::attribVector pointAttributes_
 
ga::attribVector primitiveAttributes_
 

Detailed Description

Camera primitive with only primitive-level attributes.

Unlike Mesh, Camera has no points, vertices, or faces. It stores a 4x4 transform matrix as a primitive attribute.

Member Function Documentation

◆ applyTransform()

void geo::Camera::applyTransform ( const bt::Matrix4 & mat,
TransformClass transformClass )
overridevirtual

Implements enzo::geo::Primitive.

◆ clone()

std::shared_ptr< Primitive > enzo::geo::Camera::clone ( ) const
inlineoverridevirtual

Implements enzo::geo::Primitive.

◆ getType()

PrimType enzo::geo::Camera::getType ( ) const
inlineoverridevirtual

Implements enzo::geo::Primitive.

◆ transformType()

TransformClass enzo::geo::Camera::transformType ( ) const
inlineoverridevirtual

Implements enzo::geo::Primitive.


The documentation for this class was generated from the following files: