Commit da489332 authored by Ian Humphrey's avatar Ian Humphrey
Browse files

Revert 6736 before v006v2 merge into ipce.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/branches/ipce@6739 41f8697f-d340-4b68-9986-7bafba869bb8
parent 8680d274
Loading
Loading
Loading
Loading
+25 −30
Original line number Diff line number Diff line
#define GUIHELPERS

#include "Isis.h"

#include "cam2map.h"
#include "Camera.h"
#include "TProjection.h"
#include "ProjectionFactory.h"
#include "ProcessRubberSheet.h"
#include "IException.h"
#include "cam2map.h"
#include "Pvl.h"
#include "IString.h"
#include "ProcessRubberSheet.h"
#include "ProjectionFactory.h"
#include "PushFrameCameraDetectorMap.h"
#include "Pvl.h"
#include "Target.h"
#include "TProjection.h"

using namespace std;
using namespace Isis;

void printMap();
void loadMapRes();
void loadCameraRes();
void loadMapRange();
void loadCameraRange();
void PrintMap();
void LoadMapRes();
void LoadCameraRes();
void LoadMapRange();
void LoadCameraRange();

map <QString, void *> GuiHelpers() {
  map <QString, void *> helper;
  helper ["PrintMap"] = (void *) printMap;
  helper ["LoadMapRes"] = (void *) loadMapRes;
  helper ["LoadCameraRes"] = (void *) loadCameraRes;
  helper ["LoadMapRange"] = (void *) loadMapRange;
  helper ["LoadCameraRange"] = (void *) loadCameraRange;
  helper ["PrintMap"] = (void *) PrintMap;
  helper ["LoadMapRes"] = (void *) LoadMapRes;
  helper ["LoadCameraRes"] = (void *) LoadCameraRes;
  helper ["LoadMapRange"] = (void *) LoadMapRange;
  helper ["LoadCameraRange"] = (void *) LoadCameraRange;
  return helper;
}


// Global variables
void bandChange(const int band);
void BandChange(const int band);
Cube *icube;
Camera *incam;

@@ -267,7 +266,7 @@ void IsisMain() {

  // See if we need to deal with band dependent camera models
  if(!incam->IsBandIndependent()) {
    p.BandChange(bandChange);
    p.BandChange(BandChange);
  }

  //  See if center of input image projects.  If it does, force tile
@@ -302,12 +301,8 @@ void IsisMain() {
  // Does the user want to define how it is done?
  if (ui.GetString("WARPALGORITHM") == "FORWARDPATCH") {
    transform = new cam2mapForward(icube->sampleCount(),
                                   icube->lineCount(), 
                                   incam, 
                                   samples,
                                   lines,
                                   outmap, 
                                   trim);
                                   icube->lineCount(), incam, samples,lines,
                                   outmap, trim);

    int patchSize = ui.GetInteger("PATCHSIZE");
    if (patchSize <= 1) {
@@ -547,12 +542,12 @@ int cam2mapReverse::OutputLines() const {
  return p_outputLines;
}

void bandChange(const int band) {
void BandChange(const int band) {
  incam->SetBand(band);
}

// Helper function to print out mapfile to session log
void printMap() {
void PrintMap() {
  UserInterface &ui = Application::GetUserInterface();

  // Get mapping group from map file
@@ -565,7 +560,7 @@ void printMap() {
}

// Helper function to get mapping resolution.
void loadMapRes() {
void LoadMapRes() {
  UserInterface &ui = Application::GetUserInterface();

  // Get mapping group from map file
@@ -593,7 +588,7 @@ void loadMapRes() {
}

//Helper function to get camera resolution.
void loadCameraRes() {
void LoadCameraRes() {
  UserInterface &ui = Application::GetUserInterface();
  QString file = ui.GetFileName("FROM");

@@ -613,7 +608,7 @@ void loadCameraRes() {
}

//Helper function to get ground range from map file.
void loadMapRange() {
void LoadMapRange() {
  UserInterface &ui = Application::GetUserInterface();

  // Get map file
@@ -656,7 +651,7 @@ void loadMapRange() {
}

//Helper function to load camera range.
void loadCameraRange() {
void LoadCameraRange() {
  UserInterface &ui = Application::GetUserInterface();
  QString file = ui.GetFileName("FROM");

+0 −1
Original line number Diff line number Diff line
#ifndef cam2map_h
#define cam2map_h

#include "TProjection.h"
#include "Transform.h"

using namespace Isis;
+0 −4
Original line number Diff line number Diff line
@@ -275,10 +275,6 @@
        Updated examples #1-4 GUI illustrations, and clarified some of the "Description" paragraphs.
        Fixes #2389.
     </change>
     <change name="Jac Shinaman" date="2016-02-09">
        Brought code closer to ISIS coding standards. Added test to read NAIF body frame info from labels.
        References #3934
     </change>
  </history>

  <oldName>
+1 −2
Original line number Diff line number Diff line
@@ -10,5 +10,4 @@ commands:
	  to=$(OUTPUT)/cam2mapTruth.cub \
	  map=$(INPUT)/test.map \
	  lonseam=continue \
	           pixres=map \
	           >& /dev/null;
	  pixres=map > /dev/null;
+2 −6
Original line number Diff line number Diff line
@@ -17,10 +17,6 @@ commands:
	$(APPNAME) from= $(INPUT)/ab102401.cub \
	  to=$(OUTPUT)/cam2mapCheckRange.cub \
	  defaultrange=camera \
	           MINLAT=15.0 \
	           MAXLAT=20.0 \
	           MINLON=225.0 \
	           MAXLON=230.0 \
	  MINLAT=15.0 MAXLAT=20.0 MINLON=225.0 MAXLON=230.0 \
	  pixres=mpp \
	           resolution=1000 \
	           >& /dev/null;
	  resolution=1000 > /dev/null;
Loading