35 #ifndef IECORE_CAMERA_H
36 #define IECORE_CAMERA_H
38 #include "IECore/Export.h"
39 #include "IECore/PreWorldRenderable.h"
44 IE_CORE_FORWARDDECLARE( Transform )
46 class IECORE_API Camera : public PreWorldRenderable
50 Camera(
const std::string &name =
"default",
51 TransformPtr transform =
nullptr, CompoundDataPtr parameters =
new CompoundData );
54 IE_CORE_DECLAREOBJECT( Camera, PreWorldRenderable );
56 void setName(
const std::string &name );
57 const std::string &getName()
const;
59 void setTransform( TransformPtr transform );
61 Transform *getTransform();
62 const Transform *getTransform()
const;
69 CompoundData *parametersData();
70 const CompoundData *parametersData()
const;
76 void addStandardParameters();
78 void render( Renderer *renderer )
const override;
83 TransformPtr m_transform;
84 CompoundDataPtr m_parameters;
86 static const unsigned int m_ioVersion;
89 IE_CORE_DECLAREPTR( Camera );
93 #endif // IECORE_CAMERA_H
std::map< InternedString, DataPtr > CompoundDataMap
The type of Data held by the CompoundData typedef.
Definition: CompoundDataBase.h:46
This namespace contains all components of the core library.
Definition: AddSmoothSkinningInfluencesOp.h:43