Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Fit not ignoring hidden layers

Help
2011-02-09
2013-05-02
  • Nigel Paton
    Nigel Paton
    2011-02-09

    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

     
  • cdron77
    cdron77
    2011-02-09

    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