/usr/include/opencollada/COLLADAStreamWriter/COLLADASWCamera.h is in opencollada-dev 0.1.0~20140703.ddf8f47+dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | /*
Copyright (c) 2008-2009 NetAllied Systems GmbH
This file is part of COLLADAStreamWriter.
Licensed under the MIT Open Source License,
for details please see LICENSE file or the website
http://www.opensource.org/licenses/mit-license.php
*/
#ifndef __COLLADASTREAMWRITER_CAMERA_H__
#define __COLLADASTREAMWRITER_CAMERA_H__
#include "COLLADASWPrerequisites.h"
#include "COLLADASWStreamWriter.h"
#include "COLLADASWExtraTechnique.h"
#include "COLLADASWConstants.h"
#include "COLLADASWCameraOptic.h"
namespace COLLADASW
{
/** A class that hold all information about an @a \<camera\> element.*/
class Camera : public ElementWriter, public BaseExtraTechnique
{
private:
// LibraryCameras should be able to call the add() method.
friend class LibraryCameras;
/** Describes the field of view and viewing frustum using canonical parameters. */
BaseOptic* mOptics;
/** The id of the camera.*/
String mCameraId;
/** The name of the camera.*/
String mCameraName;
protected:
/** Adds the camera information. */
void add() const;
public:
/**
* Constructor
* @param cameraId The id of the camera.
* @param cameraName The name of the camera.
*/
Camera (
StreamWriter* streamWriter,
BaseOptic* optics,
const String& cameraId = ElementWriter::EMPTY_STRING,
const String& cameraName = ElementWriter::EMPTY_STRING );
/** Destructor */
virtual ~Camera()
{ }
/** Returns a reference to the camera id */
const String& getCameraId() const { return mCameraId; }
/** Returns a reference to the camera name */
const String& getCameraName() const { return mCameraName; }
/** Describes the field of view and viewing frustum using canonical parameters. */
const BaseOptic* getOptics() const { return mOptics; }
};
} //namespace COLLADASW
#endif //__COLLADASTREAMWRITER_CAMERA_H__
|