PixelLightAPI
.
|
00001 /*********************************************************\ 00002 * File: SPPreview.h * 00003 * 00004 * Copyright (C) 2002-2011 The PixelLight Team (http://www.pixellight.org/) 00005 * 00006 * This file is part of PixelLight. 00007 * 00008 * PixelLight is free software: you can redistribute it and/or modify 00009 * it under the terms of the GNU Lesser General Public License as published by 00010 * the Free Software Foundation, either version 3 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * PixelLight is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public License 00019 * along with PixelLight. If not, see <http://www.gnu.org/licenses/>. 00020 \*********************************************************/ 00021 00022 00023 #ifndef __PLRENDERER_PREVIEWSURFACEPAINTER_H__ 00024 #define __PLRENDERER_PREVIEWSURFACEPAINTER_H__ 00025 #pragma once 00026 00027 00028 //[-------------------------------------------------------] 00029 //[ Includes ] 00030 //[-------------------------------------------------------] 00031 #include <PLMath/Vector3.h> 00032 #include "PLRenderer/Renderer/SurfacePainter.h" 00033 00034 00035 //[-------------------------------------------------------] 00036 //[ Namespace ] 00037 //[-------------------------------------------------------] 00038 namespace PLRenderer { 00039 00040 00041 //[-------------------------------------------------------] 00042 //[ Classes ] 00043 //[-------------------------------------------------------] 00044 /** 00045 * @brief 00046 * Abstract preview surface painter base class 00047 */ 00048 class SPPreview : public SurfacePainter { 00049 00050 00051 //[-------------------------------------------------------] 00052 //[ RTTI interface ] 00053 //[-------------------------------------------------------] 00054 pl_class(PLRENDERER_RTTI_EXPORT, SPPreview, "PLRenderer", PLRenderer::SurfacePainter, "Abstract preview surface painter base class") 00055 pl_class_end 00056 00057 00058 //[-------------------------------------------------------] 00059 //[ Public functions ] 00060 //[-------------------------------------------------------] 00061 public: 00062 /** 00063 * @brief 00064 * Returns the camera position 00065 * 00066 * @return 00067 * Camera position 00068 */ 00069 inline const PLMath::Vector3 &GetCameraPosition() const; 00070 00071 /** 00072 * @brief 00073 * Sets the camera position 00074 * 00075 * @param[in] vPosition 00076 * New camera position 00077 */ 00078 inline void SetCameraPosition(const PLMath::Vector3 &vPosition); 00079 00080 00081 //[-------------------------------------------------------] 00082 //[ Protected functions ] 00083 //[-------------------------------------------------------] 00084 protected: 00085 /** 00086 * @brief 00087 * Constructor 00088 * 00089 * @param[in] cRenderer 00090 * Renderer to use 00091 */ 00092 PLRENDERER_API SPPreview(Renderer &cRenderer); 00093 00094 /** 00095 * @brief 00096 * Destructor 00097 */ 00098 PLRENDERER_API virtual ~SPPreview(); 00099 00100 00101 //[-------------------------------------------------------] 00102 //[ Protected data ] 00103 //[-------------------------------------------------------] 00104 protected: 00105 PLMath::Vector3 m_vCameraPosition; /**< Camera position */ 00106 00107 00108 //[-------------------------------------------------------] 00109 //[ Private functions ] 00110 //[-------------------------------------------------------] 00111 private: 00112 /** 00113 * @brief 00114 * Copy constructor 00115 * 00116 * @param[in] cSource 00117 * Source to copy from 00118 */ 00119 SPPreview(const SPPreview &cSource); 00120 00121 /** 00122 * @brief 00123 * Copy operator 00124 * 00125 * @param[in] cSource 00126 * Source to copy from 00127 * 00128 * @return 00129 * Reference to this instance 00130 */ 00131 SPPreview &operator =(const SPPreview &cSource); 00132 00133 00134 }; 00135 00136 00137 //[-------------------------------------------------------] 00138 //[ Namespace ] 00139 //[-------------------------------------------------------] 00140 } // PLRenderer 00141 00142 00143 //[-------------------------------------------------------] 00144 //[ Implementation ] 00145 //[-------------------------------------------------------] 00146 #include "PLRenderer/SPPreview.inl" 00147 00148 00149 #endif // __PLRENDERER_PREVIEWSURFACEPAINTER_H__
|