2005-06-14 21:16:58 +08:00
|
|
|
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2005 Robert Osfield
|
|
|
|
*
|
|
|
|
* This library is open source and may be redistributed and/or modified under
|
|
|
|
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
|
|
|
* (at your option) any later version. The full license is in LICENSE file
|
|
|
|
* included with this distribution, and on the openscenegraph.org website.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* OpenSceneGraph Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OSG_CAMERANODE
|
|
|
|
#define OSG_CAMERANODE 1
|
|
|
|
|
|
|
|
#include <osg/Transform>
|
|
|
|
#include <osg/Viewport>
|
2005-07-20 00:30:55 +08:00
|
|
|
#include <osg/ColorMask>
|
2005-06-15 04:51:35 +08:00
|
|
|
#include <osg/CullSettings>
|
|
|
|
#include <osg/Texture>
|
|
|
|
#include <osg/Image>
|
2005-07-20 23:55:07 +08:00
|
|
|
#include <osg/GraphicsContext>
|
2005-06-14 21:16:58 +08:00
|
|
|
|
2005-11-23 21:44:27 +08:00
|
|
|
#include <OpenThreads/Mutex>
|
|
|
|
|
2005-06-14 21:16:58 +08:00
|
|
|
namespace osg {
|
|
|
|
|
|
|
|
/** CameraNode - is a subclass of Transform which represents encapsulates the settings of a Camera.
|
|
|
|
*/
|
2005-06-15 04:51:35 +08:00
|
|
|
class OSG_EXPORT CameraNode : public Transform, public CullSettings
|
2005-06-14 21:16:58 +08:00
|
|
|
{
|
|
|
|
public :
|
|
|
|
|
|
|
|
|
|
|
|
CameraNode();
|
|
|
|
|
|
|
|
/** Copy constructor using CopyOp to manage deep vs shallow copy.*/
|
|
|
|
CameraNode(const CameraNode&,const CopyOp& copyop=CopyOp::SHALLOW_COPY);
|
|
|
|
|
|
|
|
META_Node(osg, CameraNode);
|
|
|
|
|
|
|
|
|
2005-07-20 00:30:55 +08:00
|
|
|
/** Sets the clear color. */
|
|
|
|
inline void setClearColor(const Vec4& color) { _clearColor = color; }
|
2005-06-14 21:16:58 +08:00
|
|
|
|
2005-07-20 00:30:55 +08:00
|
|
|
/** Returns the clear color. */
|
|
|
|
inline const Vec4& getClearColor() const { return _clearColor; }
|
|
|
|
|
|
|
|
/** Set the clear mask used in glClear(..).
|
|
|
|
* Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT. */
|
|
|
|
inline void setClearMask(GLbitfield mask) { _clearMask = mask; }
|
2005-06-14 21:16:58 +08:00
|
|
|
|
2005-07-20 00:30:55 +08:00
|
|
|
/** Get the clear mask.*/
|
|
|
|
inline GLbitfield getClearMask() const { return _clearMask; }
|
|
|
|
|
|
|
|
|
|
|
|
/** Set the color mask of the camera to use specified osg::ColorMask. */
|
|
|
|
void setColorMask(osg::ColorMask* colorMask);
|
|
|
|
|
|
|
|
/** Set the color mask of the camera to specified values. */
|
|
|
|
void setColorMask(bool red, bool green, bool blue, bool alpha);
|
|
|
|
|
|
|
|
/** Get the const ColorMask. */
|
|
|
|
const ColorMask* getColorMask() const { return _colorMask.get(); }
|
|
|
|
|
|
|
|
/** Get the ColorMask. */
|
|
|
|
ColorMask* getColorMask() { return _colorMask.get(); }
|
|
|
|
|
|
|
|
|
2005-08-17 18:12:49 +08:00
|
|
|
|
|
|
|
|
2005-07-20 00:30:55 +08:00
|
|
|
/** Set the viewport of the camera to use specified osg::Viewport. */
|
|
|
|
void setViewport(osg::Viewport* viewport);
|
2005-06-14 21:16:58 +08:00
|
|
|
|
2005-07-20 00:30:55 +08:00
|
|
|
/** Set the viewport of the camera to specified dimensions. */
|
|
|
|
void setViewport(int x,int y,int width,int height);
|
|
|
|
|
2005-06-14 21:16:58 +08:00
|
|
|
/** Get the const viewport. */
|
|
|
|
const Viewport* getViewport() const { return _viewport.get(); }
|
|
|
|
|
|
|
|
/** Get the viewport. */
|
|
|
|
Viewport* getViewport() { return _viewport.get(); }
|
|
|
|
|
|
|
|
|
2005-06-15 18:59:10 +08:00
|
|
|
enum TransformOrder
|
|
|
|
{
|
2006-02-21 05:05:23 +08:00
|
|
|
PRE_MULTIPLY,
|
|
|
|
POST_MULTIPLY
|
2005-06-15 18:59:10 +08:00
|
|
|
};
|
|
|
|
|
2006-02-21 05:05:23 +08:00
|
|
|
/** Set the transformation order for world-to-local and local-to-world transformation.*/
|
2005-06-15 18:59:10 +08:00
|
|
|
void setTransformOrder(TransformOrder order) { _transformOrder = order; }
|
2006-02-21 05:05:23 +08:00
|
|
|
|
|
|
|
/** Get the transformation order.*/
|
2005-06-15 18:59:10 +08:00
|
|
|
TransformOrder getTransformOrder() const { return _transformOrder; }
|
|
|
|
|
|
|
|
|
2005-06-14 21:16:58 +08:00
|
|
|
/** Set the projection matrix. Can be thought of as setting the lens of a camera. */
|
|
|
|
inline void setProjectionMatrix(const osg::Matrixf& matrix) { _projectionMatrix.set(matrix); }
|
|
|
|
|
|
|
|
/** Set the projection matrix. Can be thought of as setting the lens of a camera. */
|
|
|
|
inline void setProjectionMatrix(const osg::Matrixd& matrix) { _projectionMatrix.set(matrix); }
|
|
|
|
|
|
|
|
/** Set to an orthographic projection. See OpenGL glOrtho for documentation further details.*/
|
|
|
|
void setProjectionMatrixAsOrtho(double left, double right,
|
|
|
|
double bottom, double top,
|
|
|
|
double zNear, double zFar);
|
|
|
|
|
|
|
|
/** Set to a 2D orthographic projection. See OpenGL glOrtho2D documentation for further details.*/
|
|
|
|
void setProjectionMatrixAsOrtho2D(double left, double right,
|
|
|
|
double bottom, double top);
|
|
|
|
|
|
|
|
/** Set to a perspective projection. See OpenGL glFrustum documentation for further details.*/
|
|
|
|
void setProjectionMatrixAsFrustum(double left, double right,
|
|
|
|
double bottom, double top,
|
|
|
|
double zNear, double zFar);
|
|
|
|
|
|
|
|
/** Create a symmetrical perspective projection, See OpenGL gluPerspective documentation for further details.
|
|
|
|
* Aspect ratio is defined as width/height.*/
|
|
|
|
void setProjectionMatrixAsPerspective(double fovy,double aspectRatio,
|
|
|
|
double zNear, double zFar);
|
|
|
|
|
|
|
|
/** Get the projection matrix.*/
|
|
|
|
osg::Matrixd& getProjectionMatrix() { return _projectionMatrix; }
|
|
|
|
|
|
|
|
/** Get the const projection matrix.*/
|
|
|
|
const osg::Matrixd& getProjectionMatrix() const { return _projectionMatrix; }
|
|
|
|
|
|
|
|
/** Get the othographic settings of the orthographic projection matrix.
|
|
|
|
* Returns false if matrix is not an orthographic matrix, where parameter values are undefined.*/
|
|
|
|
bool getProjectionMatrixAsOrtho(double& left, double& right,
|
|
|
|
double& bottom, double& top,
|
|
|
|
double& zNear, double& zFar);
|
|
|
|
|
|
|
|
/** Get the frustum setting of a perspective projection matrix.
|
|
|
|
* Returns false if matrix is not a perspective matrix, where parameter values are undefined.*/
|
|
|
|
bool getProjectionMatrixAsFrustum(double& left, double& right,
|
|
|
|
double& bottom, double& top,
|
|
|
|
double& zNear, double& zFar);
|
|
|
|
|
|
|
|
/** Get the frustum setting of a symmetric perspective projection matrix.
|
|
|
|
* Returns false if matrix is not a perspective matrix, where parameter values are undefined.
|
|
|
|
* Note, if matrix is not a symmetric perspective matrix then the shear will be lost.
|
|
|
|
* Asymmetric matrices occur when stereo, power walls, caves and reality center display are used.
|
|
|
|
* In these configurations one should use the 'getProjectionMatrixAsFrustum' method instead.*/
|
|
|
|
bool getProjectionMatrixAsPerspective(double& fovy,double& aspectRatio,
|
|
|
|
double& zNear, double& zFar);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Set the view matrix. Can be thought of as setting the position of the world relative to the camera in camera coordinates. */
|
|
|
|
inline void setViewMatrix(const osg::Matrixf& matrix) { _viewMatrix.set(matrix); dirtyBound();}
|
|
|
|
|
|
|
|
/** Set the view matrix. Can be thought of as setting the position of the world relative to the camera in camera coordinates. */
|
|
|
|
inline void setViewMatrix(const osg::Matrixd& matrix) { _viewMatrix.set(matrix); dirtyBound();}
|
|
|
|
|
|
|
|
/** Set to the position and orientation of view matrix, using the same convention as gluLookAt. */
|
|
|
|
void setViewMatrixAsLookAt(const osg::Vec3& eye,const osg::Vec3& center,const osg::Vec3& up);
|
|
|
|
|
|
|
|
/** Get the view matrix. */
|
|
|
|
osg::Matrixd& getViewMatrix() { return _viewMatrix; }
|
|
|
|
|
|
|
|
/** Get the const view matrix. */
|
|
|
|
const osg::Matrixd& getViewMatrix() const { return _viewMatrix; }
|
|
|
|
|
|
|
|
/** Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt. */
|
|
|
|
void getViewMatrixAsLookAt(osg::Vec3& eye,osg::Vec3& center,osg::Vec3& up,float lookDistance=1.0f);
|
|
|
|
|
|
|
|
/** Get the inverse view matrix.*/
|
|
|
|
Matrixd getInverseViewMatrix() const;
|
|
|
|
|
2005-06-15 04:51:35 +08:00
|
|
|
|
|
|
|
enum RenderOrder
|
|
|
|
{
|
|
|
|
PRE_RENDER,
|
|
|
|
NESTED_RENDER,
|
|
|
|
POST_RENDER
|
|
|
|
};
|
|
|
|
|
|
|
|
/** Set the rendering order of this camera's subgraph relative to any camera that this subgraph is nested within.
|
|
|
|
* For rendering to a texture, one typically uses PRE_RENDER.
|
|
|
|
* For Head Up Displays, one would typically use POST_RENDER.*/
|
|
|
|
void setRenderOrder(RenderOrder order) { _renderOrder = order; }
|
|
|
|
|
|
|
|
/** Get the rendering order of this camera's subgraph relative to any camera that this subgraph is nested within.*/
|
|
|
|
RenderOrder getRenderOrder() const { return _renderOrder; }
|
|
|
|
|
2005-12-07 19:36:56 +08:00
|
|
|
/** Return true if this Camera is set up as a render to texture camera, i.e. it has textures assigned to it.*/
|
|
|
|
bool isRenderToTextureCamera() const;
|
|
|
|
|
2005-06-15 04:51:35 +08:00
|
|
|
enum RenderTargetImplementation
|
|
|
|
{
|
|
|
|
FRAME_BUFFER_OBJECT,
|
2005-10-05 02:50:00 +08:00
|
|
|
PIXEL_BUFFER_RTT,
|
2005-06-15 04:51:35 +08:00
|
|
|
PIXEL_BUFFER,
|
2005-07-22 03:27:19 +08:00
|
|
|
FRAME_BUFFER,
|
|
|
|
SEPERATE_WINDOW
|
2005-06-15 04:51:35 +08:00
|
|
|
};
|
|
|
|
|
2006-02-21 05:05:23 +08:00
|
|
|
/** Set the render target.*/
|
2005-11-01 18:42:54 +08:00
|
|
|
void setRenderTargetImplementation(RenderTargetImplementation impl);
|
|
|
|
|
2006-02-21 05:05:23 +08:00
|
|
|
/** Set the render target and fall-back that's used if the former isn't available.*/
|
2005-11-01 18:42:54 +08:00
|
|
|
void setRenderTargetImplementation(RenderTargetImplementation impl, RenderTargetImplementation fallback);
|
|
|
|
|
2006-02-21 05:05:23 +08:00
|
|
|
/** Get the render target.*/
|
2005-09-29 17:36:51 +08:00
|
|
|
RenderTargetImplementation getRenderTargetImplementation() const { return _renderTargetImplementation; }
|
2005-06-15 04:51:35 +08:00
|
|
|
|
2006-02-21 05:05:23 +08:00
|
|
|
/** Get the render target fallback.*/
|
2005-11-01 18:42:54 +08:00
|
|
|
RenderTargetImplementation getRenderTargetFallback() const { return _renderTargetFallback; }
|
|
|
|
|
2005-06-16 04:06:10 +08:00
|
|
|
|
2005-08-17 18:12:49 +08:00
|
|
|
/** Set the draw buffer used at the start of each frame draw.
|
|
|
|
* Note, a buffer value of GL_NONE is used to sepecify that the rendering back-end should choose the most appropriate buffer.*/
|
|
|
|
void setDrawBuffer(GLenum buffer) { _drawBuffer = buffer; }
|
2005-06-16 04:06:10 +08:00
|
|
|
|
2005-08-17 18:12:49 +08:00
|
|
|
/** Get the draw buffer used at the start of each frame draw. */
|
|
|
|
GLenum getDrawBuffer() const { return _drawBuffer; }
|
2005-06-16 04:06:10 +08:00
|
|
|
|
2005-08-17 18:12:49 +08:00
|
|
|
/** Set the read buffer for any required copy operations to use.
|
|
|
|
* Note, a buffer value of GL_NONE is used to sepecify that the rendering back-end should choose the most appropriate buffer.*/
|
2005-06-16 04:06:10 +08:00
|
|
|
void setReadBuffer(GLenum buffer) { _readBuffer = buffer; }
|
|
|
|
|
|
|
|
/** Get the read buffer for any required copy operations to use. */
|
|
|
|
GLenum getReadBuffer() const { return _readBuffer; }
|
|
|
|
|
2005-06-15 04:51:35 +08:00
|
|
|
enum BufferComponent
|
|
|
|
{
|
|
|
|
DEPTH_BUFFER,
|
2005-07-20 04:01:00 +08:00
|
|
|
STENCIL_BUFFER,
|
|
|
|
COLOR_BUFFER,
|
|
|
|
COLOR_BUFFER0 = COLOR_BUFFER,
|
|
|
|
COLOR_BUFFER1 = COLOR_BUFFER+1,
|
|
|
|
COLOR_BUFFER2 = COLOR_BUFFER+2,
|
|
|
|
COLOR_BUFFER3 = COLOR_BUFFER+3,
|
|
|
|
COLOR_BUFFER4 = COLOR_BUFFER+4,
|
|
|
|
COLOR_BUFFER5 = COLOR_BUFFER+5,
|
|
|
|
COLOR_BUFFER6 = COLOR_BUFFER+6,
|
|
|
|
COLOR_BUFFER7 = COLOR_BUFFER+7
|
2005-06-15 04:51:35 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
void attach(BufferComponent buffer, GLenum internalFormat);
|
|
|
|
|
2005-07-26 00:12:24 +08:00
|
|
|
void attach(BufferComponent buffer, osg::Texture* texture, unsigned int level = 0, unsigned int face=0, bool mipMapGeneration=false);
|
2005-06-15 04:51:35 +08:00
|
|
|
|
|
|
|
void attach(BufferComponent buffer, osg::Image* image);
|
|
|
|
|
|
|
|
void detach(BufferComponent buffer);
|
|
|
|
|
|
|
|
struct Attachment
|
|
|
|
{
|
2005-06-16 04:06:10 +08:00
|
|
|
Attachment():
|
|
|
|
_internalFormat(GL_NONE),
|
|
|
|
_level(0),
|
2005-07-26 00:12:24 +08:00
|
|
|
_face(0),
|
|
|
|
_mipMapGeneration(false) {}
|
2005-06-16 04:06:10 +08:00
|
|
|
|
|
|
|
GLenum _internalFormat;
|
|
|
|
ref_ptr<Image> _image;
|
|
|
|
ref_ptr<Texture> _texture;
|
|
|
|
unsigned int _level;
|
|
|
|
unsigned int _face;
|
2005-07-26 00:12:24 +08:00
|
|
|
bool _mipMapGeneration;
|
2005-06-15 04:51:35 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef std::map< BufferComponent, Attachment> BufferAttachmentMap;
|
|
|
|
|
2005-06-16 19:42:59 +08:00
|
|
|
/** Get the BufferAttachmentMap, used to configure frame buffer objects, pbuffers and texture reads.*/
|
2005-06-15 04:51:35 +08:00
|
|
|
BufferAttachmentMap& getBufferAttachmentMap() { return _bufferAttachmentMap; }
|
2005-06-16 19:42:59 +08:00
|
|
|
|
|
|
|
/** Get the const BufferAttachmentMap, used to configure frame buffer objects, pbuffers and texture reads.*/
|
2005-06-15 04:51:35 +08:00
|
|
|
const BufferAttachmentMap& getBufferAttachmentMap() const { return _bufferAttachmentMap; }
|
2005-06-16 19:42:59 +08:00
|
|
|
|
|
|
|
|
2005-07-20 23:55:07 +08:00
|
|
|
/** Set the GraphicsContext that provides the mechansim for managing the OpenGL graphics context associated with this camera.*/
|
|
|
|
void setGraphicsContext(GraphicsContext* context) { _graphicsContext = context; }
|
|
|
|
|
|
|
|
/** Get the GraphicsContext.*/
|
|
|
|
GraphicsContext* getGraphicsContext() { return _graphicsContext.get(); }
|
|
|
|
|
|
|
|
/** Get the const GraphicsContext.*/
|
|
|
|
const GraphicsContext* getGraphicsContext() const { return _graphicsContext.get(); }
|
|
|
|
|
|
|
|
|
2005-06-16 19:42:59 +08:00
|
|
|
/** Set the Rendering object that is used to implement rendering of the subgraph.*/
|
2005-11-23 21:44:27 +08:00
|
|
|
void setRenderingCache(unsigned int contextID, osg::Object* rc) { _renderingCache[contextID] = rc; }
|
2005-06-16 19:42:59 +08:00
|
|
|
|
|
|
|
/** Get the Rendering object that is used to implement rendering of the subgraph.*/
|
2005-11-23 21:44:27 +08:00
|
|
|
osg::Object* getRenderingCache(unsigned int contextID) { return _renderingCache[contextID].get(); }
|
2005-06-15 04:51:35 +08:00
|
|
|
|
2005-06-16 19:42:59 +08:00
|
|
|
/** Get the const Rendering object that is used to implement rendering of the subgraph.*/
|
2005-11-23 21:44:27 +08:00
|
|
|
const osg::Object* getRenderingCache(unsigned int contextID) const { return _renderingCache[contextID].get(); }
|
2005-06-16 19:42:59 +08:00
|
|
|
|
2005-06-14 21:16:58 +08:00
|
|
|
|
2005-07-25 04:31:21 +08:00
|
|
|
/** Draw callback for custom operations.*/
|
|
|
|
struct DrawCallback : public Object
|
|
|
|
{
|
|
|
|
DrawCallback() {}
|
|
|
|
|
|
|
|
DrawCallback(const DrawCallback&,const CopyOp&) {}
|
|
|
|
|
|
|
|
META_Object(osg,DrawCallback)
|
|
|
|
|
2005-11-02 18:29:13 +08:00
|
|
|
virtual void operator () (const osg::CameraNode& /*camera*/) const {}
|
2005-07-25 04:31:21 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
/** Set the post draw callback for custom operations to do done after the drawing of the camera's subgraph has been completed.*/
|
|
|
|
void setPostDrawCallback(DrawCallback* cb) { _postDrawCallback = cb; }
|
|
|
|
|
|
|
|
/** Get the post draw callback.*/
|
|
|
|
DrawCallback* getPostDrawCallback() { return _postDrawCallback.get(); }
|
|
|
|
|
|
|
|
/** Get the const post draw callback.*/
|
|
|
|
const DrawCallback* getPostDrawCallback() const { return _postDrawCallback.get(); }
|
|
|
|
|
2005-11-24 00:32:55 +08:00
|
|
|
OpenThreads::Mutex* getDataChangeMutex() const { return &_dataChangeMutex; }
|
2005-07-25 04:31:21 +08:00
|
|
|
|
2005-12-08 18:06:57 +08:00
|
|
|
/** If State is non-zero, this function releases any associated OpenGL objects for
|
|
|
|
* the specified graphics context. Otherwise, releases OpenGL objexts
|
|
|
|
* for all graphics contexts. */
|
|
|
|
virtual void releaseGLObjects(osg::State* = 0) const;
|
|
|
|
|
2005-07-25 04:31:21 +08:00
|
|
|
public:
|
2005-06-14 21:16:58 +08:00
|
|
|
|
|
|
|
/** Transform method that must be defined to provide generic interface for scene graph traversals.*/
|
|
|
|
virtual bool computeLocalToWorldMatrix(Matrix& matrix,NodeVisitor*) const;
|
|
|
|
|
|
|
|
/** Transform method that must be defined to provide generic interface for scene graph traversals.*/
|
|
|
|
virtual bool computeWorldToLocalMatrix(Matrix& matrix,NodeVisitor*) const;
|
|
|
|
|
|
|
|
protected :
|
|
|
|
|
|
|
|
virtual ~CameraNode();
|
2005-11-23 21:44:27 +08:00
|
|
|
|
|
|
|
mutable OpenThreads::Mutex _dataChangeMutex;
|
2005-06-14 21:16:58 +08:00
|
|
|
|
2005-06-15 04:51:35 +08:00
|
|
|
Vec4 _clearColor;
|
|
|
|
GLbitfield _clearMask;
|
2005-08-17 18:12:49 +08:00
|
|
|
ref_ptr<ColorMask> _colorMask;
|
2005-06-15 04:51:35 +08:00
|
|
|
ref_ptr<Viewport> _viewport;
|
2005-06-15 18:59:10 +08:00
|
|
|
|
|
|
|
TransformOrder _transformOrder;
|
2005-06-15 04:51:35 +08:00
|
|
|
Matrixd _projectionMatrix;
|
|
|
|
Matrixd _viewMatrix;
|
|
|
|
|
|
|
|
RenderOrder _renderOrder;
|
|
|
|
|
2005-08-17 18:12:49 +08:00
|
|
|
GLenum _drawBuffer;
|
2005-06-16 04:06:10 +08:00
|
|
|
GLenum _readBuffer;
|
|
|
|
|
2005-06-15 04:51:35 +08:00
|
|
|
RenderTargetImplementation _renderTargetImplementation;
|
2005-11-01 18:42:54 +08:00
|
|
|
RenderTargetImplementation _renderTargetFallback;
|
2005-06-15 04:51:35 +08:00
|
|
|
BufferAttachmentMap _bufferAttachmentMap;
|
2005-06-14 21:16:58 +08:00
|
|
|
|
2005-11-23 21:44:27 +08:00
|
|
|
ref_ptr<GraphicsContext> _graphicsContext;
|
|
|
|
buffered_object< ref_ptr<Object> > _renderingCache;
|
2005-07-25 04:31:21 +08:00
|
|
|
|
2005-11-23 21:44:27 +08:00
|
|
|
ref_ptr<DrawCallback> _postDrawCallback;
|
2005-06-14 21:16:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|