Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_TranslateOperation.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_TRANSLATEOPERATION_H__ | #pragma once | ||||
| #define __COM_TRANSLATEOPERATION_H__ | |||||
| #include "COM_NodeOperation.h" | #include "COM_NodeOperation.h" | ||||
| class TranslateOperation : public NodeOperation { | class TranslateOperation : public NodeOperation { | ||||
| private: | private: | ||||
| SocketReader *m_inputOperation; | SocketReader *m_inputOperation; | ||||
| SocketReader *m_inputXOperation; | SocketReader *m_inputXOperation; | ||||
| SocketReader *m_inputYOperation; | SocketReader *m_inputYOperation; | ||||
| Show All 31 Lines | if (!this->m_isDeltaSet) { | ||||
| this->m_inputYOperation->readSampled(tempDelta, 0, 0, COM_PS_NEAREST); | this->m_inputYOperation->readSampled(tempDelta, 0, 0, COM_PS_NEAREST); | ||||
| this->m_deltaY = tempDelta[0]; | this->m_deltaY = tempDelta[0]; | ||||
| this->m_isDeltaSet = true; | this->m_isDeltaSet = true; | ||||
| } | } | ||||
| } | } | ||||
| void setFactorXY(float factorX, float factorY); | void setFactorXY(float factorX, float factorY); | ||||
| }; | }; | ||||
| #endif | |||||