-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing broken linux builds. Re #6137.
- Loading branch information
1 parent
7b532fe
commit 6b577a6
Showing
19 changed files
with
265 additions
and
88 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
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
7 changes: 7 additions & 0 deletions
7
Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/GLActorVisitor.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,7 @@ | ||
#include "GLActorVisitor.h" | ||
|
||
bool SetAllVisibleVisitor::visit(GLActor* actor) | ||
{ | ||
actor->setVisibility(true); | ||
return true; | ||
} |
38 changes: 38 additions & 0 deletions
38
Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/GLActorVisitor.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,38 @@ | ||
#ifndef GLACTORVISITOR_H | ||
#define GLACTORVISITOR_H | ||
|
||
#include "GLActor.h" | ||
|
||
/** | ||
* A base class for an actor visitor. | ||
*/ | ||
class GLActorVisitor | ||
{ | ||
public: | ||
/// Virtual destructor. | ||
virtual ~GLActorVisitor(){} | ||
/// Abstract method that must be implemented in sub-classes | ||
virtual bool visit(GLActor*) = 0; | ||
}; | ||
|
||
/* | ||
* The visit() method implemented by sub-classes must return true if an actor | ||
* is set visible and false otherwise. This is requered by GLActorCollection::accept() | ||
* method to determine whether the collection itself is visible or not. | ||
* | ||
* All visitors changing visibility should be sub-classed from this base class. | ||
*/ | ||
class SetVisibilityVisitor: public GLActorVisitor | ||
{ | ||
}; | ||
|
||
/** | ||
* Set all actors visible. | ||
*/ | ||
class SetAllVisibleVisitor: public SetVisibilityVisitor | ||
{ | ||
public: | ||
bool visit(GLActor*); | ||
}; | ||
|
||
#endif // GLACTORVISITOR_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
Oops, something went wrong.