37 #ifndef Alembic_AbcGeom_CameraSample_h
38 #define Alembic_AbcGeom_CameraSample_h
58 CameraSample(
double iTop,
double iBottom,
double iLeft,
double iRight );
60 void getScreenWindow(
double & oTop,
double & oBottom,
double & oLeft,
80 { m_horizontalFilmOffset = iVal; }
101 { m_lensSqueezeRatio = iVal; }
179 { m_childBounds = iBounds; }
184 double getCoreValue( std::size_t iIndex )
const;
187 double getFieldOfView()
const;;
199 std::size_t getNumOps()
const;
200 std::size_t getNumOpChannels()
const;
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;
259 std::vector<FilmBackXformOp> m_ops;
void setFocalLength(double iVal)
set the camera focal length in millimeters.
double getOverScanBottom() const
CameraSample()
Creates a default sample with a bunch of defaults set.
void setOverScanBottom(double iVal)
void setChildBounds(const Abc::Box3d &iBounds)
void setOverScanRight(double iVal)
void setVerticalAperture(double iVal)
set the vertical camera film back in centimeters
double getShutterOpen() const
get the frame relative shutter open time in seconds.
void setShutterOpen(double iVal)
set the frame relative shutter open time in seconds.
double getVerticalAperture() const
get the vertical camera film back in centimeters
Matrix33< double > M33d
3x3 matrix of double
double getFocalLength() const
get the camera focal length in millimeters.
double getOverScanTop() const
void setOverScanLeft(double iVal)
double getLensSqueezeRatio() const
double getHorizontalFilmOffset() const
get the horizontal film back offset in centimeters
double getFStop() const
get the f-stop (focal length divided by "effective" lens diameter)
void setFStop(double iVal)
set the f-stop (focal length divided by "effective" lens diameter)
double getOverScanRight() const
void setHorizontalAperture(double iVal)
set the horizontal camera film back in centimeters
void setFocusDistance(double iVal)
void setNearClippingPlane(double iVal)
Box< V3d > Box3d
3D box of base type double.
Abc::Box3d getChildBounds() const
void setLensSqueezeRatio(double iVal)
void setShutterClose(double iVal)
set the frame relative shutter open time in seconds.
void setHorizontalFilmOffset(double iVal)
set the horizontal film back offset in centimeters
double getVerticalFilmOffset() const
get the vertical film back offset in centimeters
void setVerticalFilmOffset(double iVal)
set the vertical film back offset in centimeters
double getShutterClose() const
get the frame relative shutter close time in seconds.
double getHorizontalAperture() const
get the horizontal camera film back in centimeters
double getNearClippingPlane() const
double getFocusDistance() const
void setFarClippingPlane(double iVal)
double getFarClippingPlane() const
#define ALEMBIC_VERSION_NS
void setOverScanTop(double iVal)