Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5128: Add TextureToolRotateManipulator stub
- Loading branch information
1 parent
80473fb
commit 7057b97
Showing
10 changed files
with
88 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
radiantcore/selection/manipulators/TextureToolRotateManipulator.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#include "TextureToolRotateManipulator.h" | ||
|
||
namespace selection | ||
{ | ||
|
||
std::size_t TextureToolRotateManipulator::getId() const | ||
{ | ||
return _id; | ||
} | ||
|
||
void TextureToolRotateManipulator::setId(std::size_t id) | ||
{ | ||
_id = id; | ||
} | ||
|
||
IManipulator::Type TextureToolRotateManipulator::getType() const | ||
{ | ||
return IManipulator::Rotate; | ||
} | ||
|
||
IManipulator::Component* TextureToolRotateManipulator::getActiveComponent() | ||
{ | ||
return nullptr; | ||
} | ||
|
||
void TextureToolRotateManipulator::setSelected(bool select) | ||
{ | ||
_isSelected = select; | ||
} | ||
|
||
bool TextureToolRotateManipulator::isSelected() const | ||
{ | ||
return _isSelected; | ||
} | ||
|
||
void TextureToolRotateManipulator::testSelect(SelectionTest& test, const Matrix4& pivot2world) | ||
{ | ||
// TODO | ||
} | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
radiantcore/selection/manipulators/TextureToolRotateManipulator.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include "imanipulator.h" | ||
|
||
namespace selection | ||
{ | ||
|
||
class TextureToolRotateManipulator : | ||
public IManipulator | ||
{ | ||
private: | ||
std::size_t _id; | ||
bool _isSelected; | ||
|
||
public: | ||
virtual std::size_t getId() const override; | ||
virtual void setId(std::size_t id) override; | ||
virtual Type getType() const override; | ||
|
||
virtual Component* getActiveComponent() override; | ||
|
||
virtual void setSelected(bool select) override; | ||
virtual bool isSelected() const override; | ||
virtual void testSelect(SelectionTest& test, const Matrix4& pivot2world) override; | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters