Author Topic: Figure out whether a view's STF is enabled or not  (Read 4097 times)

Offline David Serrano

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 503
Figure out whether a view's STF is enabled or not
« on: 2015 April 12 09:01:02 »
Line 668 of 3DPlot.js reads as follows:

Code: [Select]
   ApplySTF(src, perspecParams.srcView.stf);
It applies the view's STF unconditionally, which is a bug to me because if I disable the STF for this view, 3DPlot still applies it, generating a plot that doesn't match what is currently being displayed.

I was going to wrap that line inside an if() ("if stf is enabled for a given view") but needed some details on what to evaluate. Unfortunately the class browser seems to have disappeared (it's been 8-10 years since I last used PixInsight regularly). The PJSR include files in include/pjsr/* don't tell the whole story and if I go to the online PCL doc at http://www.pixinsight.com/developer/pcl/doc/html/ and search for "stf" I get zero results.

Well, I tried :). Any pointers, anyone?
--
 David Serrano

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Figure out whether a view's STF is enabled or not
« Reply #1 on: 2015 April 17 03:40:02 »
Hi David,

Unfortunately, there's no way to know if a view has STF enabled or not via PJSR. I've just added a View.isSTFEnabled property, which will be available in the next version of the core application, but for now... I can't figure out a trick to do this. Clearly, the ImageWindow and View objects require further improvements to get at least the same functionality that is now available with C++/PCL.

Sorry for not having a solution!

Welcome back, by the way! ;)
Juan Conejero
PixInsight Development Team
http://pixinsight.com/