Skip to content

REveCamera#40

Open
yuxiaolab wants to merge 9 commits intoalja:geo-25from
yuxiaolab:yuxiao
Open

REveCamera#40
yuxiaolab wants to merge 9 commits intoalja:geo-25from
yuxiaolab:yuxiao

Conversation

@yuxiaolab
Copy link

This Pull request:

Changes or fixes:

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

This PR fixes #

@yuxiaolab yuxiaolab requested a review from osschar as a code owner February 4, 2026 23:21
REveTrans fCamBase; // Base camera matrix (main positioning)
REveTrans fCamTrans;

// Original direction vectors (for Setup)
Copy link
Owner

@alja alja Feb 4, 2026

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>
Copy link
Owner

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
Copy link
Owner

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
Copy link
Owner

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();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Restore align.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants