Skip to content

Commit

Permalink
issue #2 merge Focus, focux.hpp, focus.hxx
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyendumajumdar committed May 8, 2020
1 parent d294f1b commit 5c442fb
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 68 deletions.
2 changes: 1 addition & 1 deletion doc/texinfo/goptical.texi
Original file line number Diff line number Diff line change
Expand Up @@ -1745,7 +1745,7 @@ Optical systems analysis tools
@subheading Declaration

@example
#include <goptical/core/analysis/focus>
#include <goptical/core/analysis/focus.cpp>

namespace goptical @{
namespace analysis @{
Expand Down
2 changes: 1 addition & 1 deletion examples/curve_model/usercurve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include <goptical/core/trace/Params>

#include <goptical/core/analysis/Spot>
#include <goptical/core/analysis/Focus>
#include <goptical/core/analysis/focus.hpp>

#include <goptical/core/io/RendererPlplot>
#include <goptical/core/io/RendererSvg>
Expand Down
10 changes: 0 additions & 10 deletions include/goptical/core/analysis/Focus

This file was deleted.

17 changes: 17 additions & 0 deletions include/goptical/core/analysis/focus.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,26 @@ namespace _goptical
bool _processed_focus;
math::VectorPair3 _best_focus;
};
void Focus::invalidate ()
{
_processed_focus = false;
_processed_trace = false;
}

const math::VectorPair3 &Focus::get_best_focus ()
{
process_focus ();

return _best_focus;
}
}
}

namespace goptical {
namespace analysis {
using _goptical::analysis::Focus;
}
} // namespace goptical

#endif

55 changes: 0 additions & 55 deletions include/goptical/core/analysis/focus.hxx

This file was deleted.

2 changes: 1 addition & 1 deletion src/core/analysis_focus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


#include <goptical/core/math/VectorPair>
#include <goptical/core/analysis/Focus>
#include <goptical/core/analysis/focus.hpp>
#include <goptical/core/trace/Tracer>
#include <goptical/core/sys/Image>
#include <goptical/core/trace/Ray>
Expand Down

0 comments on commit 5c442fb

Please sign in to comment.