mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 19:04:32 +02:00
fix monochrome option menu hook
This commit is contained in:
parent
b4da77028b
commit
c930d058b1
4 changed files with 10 additions and 33 deletions
|
@ -1117,29 +1117,6 @@ void Application::doKillLocalVoxels() {
|
|||
_wantToKillLocalVoxels = true;
|
||||
}
|
||||
|
||||
//
|
||||
//void Application::doFalseColorizeInView() {
|
||||
// loadViewFrustum(_myCamera, _viewFrustum);
|
||||
// // we probably want to make sure the viewFrustum is initialized first
|
||||
// _voxels.falseColorizeInView(&_viewFrustum);
|
||||
//}
|
||||
//
|
||||
//void Application::doFalseColorizeOccluded() {
|
||||
// CoverageMap::wantDebugging = true;
|
||||
// _voxels.falseColorizeOccluded();
|
||||
//}
|
||||
//
|
||||
//void Application::doFalseColorizeOccludedV2() {
|
||||
// _voxels.falseColorizeOccludedV2();
|
||||
//}
|
||||
//
|
||||
//void Application::doFalseColorizeBySource() {
|
||||
// _voxels.falseColorizeBySource();
|
||||
//}
|
||||
//
|
||||
//void Application::doTrueVoxelColors() {
|
||||
// _voxels.trueColorize();
|
||||
//}
|
||||
//
|
||||
//void Application::disableLowResMoving(bool disableLowResMoving) {
|
||||
// _myAvatar.setWantLowResMoving(!disableLowResMoving);
|
||||
|
|
|
@ -323,12 +323,12 @@ Menu::Menu() :
|
|||
appInstance->getVoxels(),
|
||||
SLOT(trueColorize()));
|
||||
|
||||
|
||||
addCheckableActionToQMenuAndActionHash(debugMenu, MenuOption::LowPassFilter);
|
||||
|
||||
addCheckableActionToQMenuAndActionHash(debugMenu, MenuOption::Monochrome, NULL, NULL);
|
||||
|
||||
// debugMenu->addAction("Wants Monochrome", this, SLOT(setWantsMonochrome(bool)))->setCheckable(true);
|
||||
addCheckableActionToQMenuAndActionHash(debugMenu,
|
||||
MenuOption::SendVoxelColors,
|
||||
0,
|
||||
true,
|
||||
appInstance->getAvatar(),
|
||||
SLOT(setWantColor(bool)));
|
||||
|
||||
addCheckableActionToQMenuAndActionHash(debugMenu, MenuOption::DisableLowRes, NULL, NULL);
|
||||
|
||||
|
|
|
@ -154,9 +154,7 @@ namespace MenuOption {
|
|||
const QString Log = "Log";
|
||||
const QString LookAtIndicator = "Look-at Indicator";
|
||||
const QString LookAtVectors = "Look-at Vectors";
|
||||
const QString LowPassFilter = "Low-pass Filter";
|
||||
const QString Mirror = "Mirror";
|
||||
const QString Monochrome = "Monochrome";
|
||||
const QString Oscilloscope = "Audio Oscilloscope";
|
||||
const QString Pair = "Pair";
|
||||
const QString PasteVoxels = "Paste Voxels";
|
||||
|
@ -166,6 +164,7 @@ namespace MenuOption {
|
|||
const QString ResetAvatarSize = "Reset Avatar Size";
|
||||
const QString ResetSwatchColors = "Reset Swatch Colors";
|
||||
const QString RunTimingTests = "Run Timing Tests";
|
||||
const QString SendVoxelColors = "Colored Voxels";
|
||||
const QString SettingsAutosave = "Autosave";
|
||||
const QString SettingsLoad = "Load Settings";
|
||||
const QString SettingsSave = "Save Settings";
|
||||
|
|
|
@ -116,9 +116,8 @@ public:
|
|||
bool getWantOcclusionCulling() const { return _wantOcclusionCulling; }
|
||||
uint16_t getLeaderID() const { return _leaderID; }
|
||||
|
||||
void setWantColor(bool wantColor) { _wantColor = wantColor; }
|
||||
void setWantDelta(bool wantDelta) { _wantDelta = wantDelta; }
|
||||
void setWantLowResMoving(bool wantLowResMoving) { _wantLowResMoving = wantLowResMoving; }
|
||||
|
||||
void setWantOcclusionCulling(bool wantOcclusionCulling) { _wantOcclusionCulling = wantOcclusionCulling; }
|
||||
|
||||
void setHeadData(HeadData* headData) { _headData = headData; }
|
||||
|
@ -126,6 +125,8 @@ public:
|
|||
|
||||
public slots:
|
||||
void sendData();
|
||||
void setWantLowResMoving(bool wantLowResMoving) { _wantLowResMoving = wantLowResMoving; }
|
||||
void setWantColor(bool wantColor) { _wantColor = wantColor; }
|
||||
|
||||
protected:
|
||||
glm::vec3 _position;
|
||||
|
|
Loading…
Reference in a new issue