/usr/include/opencollada/COLLADAStreamWriter/COLLADASWImage.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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | /*
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_IMAGE_H__
#define __COLLADASTREAMWRITER_IMAGE_H__
#include "COLLADASWPrerequisites.h"
#include "COLLADASWExtraTechnique.h"
#include "COLLADABUURI.h"
namespace COLLADASW
{
/**
Declares the storage for the graphical representation of an object.
Parent elements:
library_images, effect, profile_CG, profile_GLSL, profile_COMMON,
profile_GLES, technique (FX) (in profile_CG, profile_COMMON, profile_GLES,
profile_GLSL)
*/
class Image : public BaseExtraTechnique
{
private:
/** Contains a string of type xs:anyURI that specifies an external
image file. This element has no attributes or child elements.*/
URI mFileURI;
/** Contains a sequence of hexadecimal encoded binary octets composing
the embedded image data. This element has no attributes or child
elements. */
String mData;
/** A text string containing the unique identifier of the <image>
element. This value must be unique within the instance document.
Optional. */
String mId;
/** The text string name of this element. Optional.*/
String mNameNC;
/** A text string value that indicates the image format. It describes
the encoding of the image in <data> or the format of the image
referenced by <init_from> if it is in a nonstandard format that cannot
be identified by its file extension. For example, if <data> in a
COLLADASW document contains the digital contents of a JPEG file, then set
this attribute to "JPG". Optional. */
String mFormat;
/** An integer value that indicates the height of the image in pixels. Optional. */
int mHeight;
/** An integer value that indicates the width of the image in pixels. Optional. */
int mWeight;
/** An integer value that indicates the depth of the image in pixels.
A 2-D image has a depth of 1, which is the default. Optional. */
int mDepth;
public:
/** Constructor
@param fileName The file name of the image.
@param imageId The id of the image.
@param imageName The name of the image.
*/
Image (
const URI& fileURI,
const String& imageId,
const String& imageName = ElementWriter::EMPTY_STRING );
/** Destructor*/
virtual ~Image() {}
/** Adds the declaration of the storage for the graphical representation of an object. */
void add ( StreamWriter* sw ) const;
/** Returns a reference to the file name*/
const URI& getFileURI() const { return mFileURI; }
/** Returns a reference to the image id*/
const String& getImageId() const { return mId; }
/** Returns a reference to the image name*/
const String& getImageName() const { return mNameNC; }
/** A text string value that indicates the image format. It describes
the encoding of the image in <data> or the format of the image
referenced by <init_from> if it is in a nonstandard format that cannot
be identified by its file extension. For example, if <data> in a
COLLADASW document contains the digital contents of a JPEG file, then set
this attribute to "JPG". Optional. */
const COLLADASW::String& getFormat () const { return mFormat; }
void setFormat ( const COLLADASW::String &val ) { mFormat = val; }
};
}
#endif // __COLLADASTREAMWRITER_IMAGE_H__
|