37#ifndef Alembic_AbcGeom_CameraSample_h
38#define Alembic_AbcGeom_CameraSample_h
58 CameraSample(
double iTop,
double iBottom,
double iLeft,
double iRight );
80 { m_horizontalFilmOffset = iVal; }
101 { m_lensSqueezeRatio = iVal; }
179 { m_childBounds = iBounds; }
205 m_focalLength = 35.0;
208 m_horizontalAperture = 3.6;
209 m_horizontalFilmOffset = 0.0;
210 m_verticalAperture = 2.4;
211 m_verticalFilmOffset = 0.0;
214 m_lensSqueezeRatio = 1.0;
216 m_overscanLeft = 0.0;
217 m_overscanRight = 0.0;
219 m_overscanBottom = 0.0;
225 m_focusDistance = 5.0;
227 m_shutterClose = 0.020833333333333332;
229 m_nearClippingPlane = 0.1;
230 m_farClippingPlane = 100000.0;
232 m_childBounds.makeEmpty();
237 double m_focalLength;
238 double m_horizontalAperture;
239 double m_horizontalFilmOffset;
240 double m_verticalAperture;
241 double m_verticalFilmOffset;
242 double m_lensSqueezeRatio;
244 double m_overscanLeft;
245 double m_overscanRight;
246 double m_overscanTop;
247 double m_overscanBottom;
250 double m_focusDistance;
251 double m_shutterOpen;
252 double m_shutterClose;
254 double m_nearClippingPlane;
255 double m_farClippingPlane;
257 Abc::Box3d m_childBounds;
259 std::vector<FilmBackXformOp> m_ops;
#define ALEMBIC_VERSION_NS
double getFocalLength() const
get the camera focal length in millimeters.
Abc::Box3d getChildBounds() const
Abc::M33d getFilmBackMatrix() const
Returns the concatenated 3x3 film back matrix.
void setOverScanRight(double iVal)
double getCoreValue(std::size_t iIndex) const
double getFocusDistance() const
std::size_t getNumOpChannels() const
CameraSample(double iTop, double iBottom, double iLeft, double iRight)
double getVerticalFilmOffset() const
get the vertical film back offset in centimeters
void setHorizontalAperture(double iVal)
set the horizontal camera film back in centimeters
double getShutterOpen() const
get the frame relative shutter open time in seconds.
double getLensSqueezeRatio() const
void setOverScanBottom(double iVal)
std::size_t addOp(FilmBackXformOp iOp)
double getFarClippingPlane() const
const FilmBackXformOp & operator[](const std::size_t &iIndex) const
FilmBackXformOp & operator[](const std::size_t &iIndex)
CameraSample()
Creates a default sample with a bunch of defaults set.
double getShutterClose() const
get the frame relative shutter close time in seconds.
FilmBackXformOp getOp(std::size_t iIndex) const
void setChildBounds(const Abc::Box3d &iBounds)
double getHorizontalAperture() const
get the horizontal camera film back in centimeters
double getNearClippingPlane() const
void setNearClippingPlane(double iVal)
void setFarClippingPlane(double iVal)
double getOverScanRight() const
void setOverScanTop(double iVal)
double getHorizontalFilmOffset() const
get the horizontal film back offset in centimeters
void setShutterClose(double iVal)
set the frame relative shutter open time in seconds.
void getScreenWindow(double &oTop, double &oBottom, double &oLeft, double &oRight)
void setHorizontalFilmOffset(double iVal)
set the horizontal film back offset in centimeters
void setFStop(double iVal)
set the f-stop (focal length divided by "effective" lens diameter)
double getOverScanTop() const
void setFocalLength(double iVal)
set the camera focal length in millimeters.
double getFieldOfView() const
void setShutterOpen(double iVal)
set the frame relative shutter open time in seconds.
std::size_t getNumOps() const
void setLensSqueezeRatio(double iVal)
void setVerticalAperture(double iVal)
set the vertical camera film back in centimeters
void setFocusDistance(double iVal)
double getFStop() const
get the f-stop (focal length divided by "effective" lens diameter)
double getVerticalAperture() const
get the vertical camera film back in centimeters
double getOverScanBottom() const
void setOverScanLeft(double iVal)
void setVerticalFilmOffset(double iVal)
set the vertical film back offset in centimeters