The Fit method does not ignore hidden layers (m_visible == false). The function that needs to take notice is mpWindow::UpdateBBox(). Possible fix is to change the default mpLayer::HasBBox to return m_visible rather than TRUE.
If you don't want to change mathplot code just derive a new class from the mathplot layer class and define your own HasBBox that returns m_visible:
virtual bool HasBBox() { return (m_visible); }
Cheers
Nigel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I believe this can be considered a bug, even though the user may want that the bounding box surrounding all data includes also the hidden profiles (this may be useful in some cases).
Anyway, the behaviour you suggest is more suitable for general cases, so I'll change this in the next release (unless a popular insurrection from the users requires it to be differently).
Cheers
CD-RON77
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
The Fit method does not ignore hidden layers (m_visible == false). The function that needs to take notice is mpWindow::UpdateBBox(). Possible fix is to change the default mpLayer::HasBBox to return m_visible rather than TRUE.
If you don't want to change mathplot code just derive a new class from the mathplot layer class and define your own HasBBox that returns m_visible:
virtual bool HasBBox() { return (m_visible); }
Cheers
Nigel
I believe this can be considered a bug, even though the user may want that the bounding box surrounding all data includes also the hidden profiles (this may be useful in some cases).
Anyway, the behaviour you suggest is more suitable for general cases, so I'll change this in the next release (unless a popular insurrection from the users requires it to be differently).
Cheers
CD-RON77