-
Notifications
You must be signed in to change notification settings - Fork 0
REveCamera #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: geo-25
Are you sure you want to change the base?
REveCamera #40
Conversation
| REveTrans fCamBase; // Base camera matrix (main positioning) | ||
| REveTrans fCamTrans; | ||
|
|
||
| // Original direction vectors (for Setup) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented lines with V1, V2.
The camBase matrix is holding this info.
Lines 65-69 can also be removed.
| #include <ROOT/REveSystem.hxx> | ||
| #include <ROOT/RLogger.hxx> | ||
|
|
||
| #include <ROOT/REveCamera.hxx> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A better practice is to include the REveCamera.hxx header in REveManager.cxx.
|
|
||
| REveViewerList *fViewers{nullptr}; | ||
| REveSceneList *fScenes{nullptr}; | ||
| REveElement *fCameras{nullptr}; // yuxiao |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fCamera declaration does not need a comment.
| // void SetCameraType(ECameraType t); | ||
| // ECameraType GetCameraType() const { return fCamera->GetType(); } | ||
| void SetCamera(::ROOT::Experimental::REveCamera *cam); | ||
| ElementId_t GetCameraId() const { return fCameraId; } // yuxiao |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps GetCameraId() can be replaced with:
REveCamera* GetCamera() {return fCamera; }
Just for the Get/Set symetry.
ElementId_t fCameraId member is not needed. One can get the if with fCamera->GetElementId()
|
|
||
| fScenes = new REveSceneList("Scenes"); | ||
| fScenes->IncDenyDestroy(); | ||
| fScenes->IncDenyDestroy(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restore align.
This Pull request:
Changes or fixes:
Checklist:
This PR fixes #