Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_WrapOperation.h
| Show All 10 Lines | |||||
| * | * | ||||
| * You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| * | * | ||||
| * Copyright 2011, Blender Foundation. | * Copyright 2011, Blender Foundation. | ||||
| */ | */ | ||||
| #ifndef __COM_WRAPOPERATION_H__ | #pragma once | ||||
| #define __COM_WRAPOPERATION_H__ | |||||
| #include "COM_ReadBufferOperation.h" | #include "COM_ReadBufferOperation.h" | ||||
| class WrapOperation : public ReadBufferOperation { | class WrapOperation : public ReadBufferOperation { | ||||
| private: | private: | ||||
| int m_wrappingType; | int m_wrappingType; | ||||
| public: | public: | ||||
| WrapOperation(DataType datetype); | WrapOperation(DataType datetype); | ||||
| bool determineDependingAreaOfInterest(rcti *input, | bool determineDependingAreaOfInterest(rcti *input, | ||||
| ReadBufferOperation *readOperation, | ReadBufferOperation *readOperation, | ||||
| rcti *output); | rcti *output); | ||||
| void executePixelSampled(float output[4], float x, float y, PixelSampler sampler); | void executePixelSampled(float output[4], float x, float y, PixelSampler sampler); | ||||
| void setWrapping(int wrapping_type); | void setWrapping(int wrapping_type); | ||||
| float getWrappedOriginalXPos(float x); | float getWrappedOriginalXPos(float x); | ||||
| float getWrappedOriginalYPos(float y); | float getWrappedOriginalYPos(float y); | ||||
| void setFactorXY(float factorX, float factorY); | void setFactorXY(float factorX, float factorY); | ||||
| }; | }; | ||||
| #endif | |||||