예제 #1
0
  /**
   * SetCenter sets the image coordinates to the center of the image.
   *
   * @return PvlGroup* The pertinent data from the Camera class on 
   *         the point. Ownership is passed to caller.
   */
  PvlGroup * CameraPointInfo::SetCenter() {
    if (CheckCube()) {
      camera->SetImage(currentCube->Samples()/2, currentCube->Lines()/2);

      return GetPointInfo();
    }
    return NULL;
  }
예제 #2
0
  /**
   * SetGround sets a latitude, longitude grrund coordinate in the 
   * camera so data can be accessed. 
   * 
   * @param latitude A latitude coordinate in or almost in the 
   *                 cube
   * @param longitude A longitude coordinate in or almost in the 
   *                  cube
   * 
   * @return PvlGroup* The pertinent data from the Camera class on 
   *         the point. Ownership is passed to caller.
   */
  PvlGroup * CameraPointInfo::SetGround(const double latitude, const double longitude) {
    if (CheckCube()) {
      camera->SetUniversalGround(latitude, longitude);

      return GetPointInfo();
    }
    return NULL;
  }
예제 #3
0
  /**
   * SetImage sets a sample, line image coordinate in the camera 
   * so data can be accessed. 
   * 
   * @param sample A sample coordinate in or almost in the cube
   * @param line A line coordinate in or almost in the cubei 
   *  
   * @return PvlGroup* The pertinent data from the Camera class on 
   *         the point. Ownership is passed to caller.
   */
  PvlGroup * CameraPointInfo::SetImage(double sample, double line) {
    if (CheckCube()) {
      camera->SetImage(sample, line);

      return GetPointInfo();
    }
    return NULL;
  }
예제 #4
0
  /**
   * SetLine sets the image coordinates to the center sample and the
   * given line.
   *
   * @return PvlGroup* The pertinent data from the Camera class on 
   *         the point. Ownership is passed to caller.
   */
  PvlGroup * CameraPointInfo::SetLine(double line) {
    if (CheckCube()) {
      camera->SetImage(currentCube->Samples()/2, line);

      return GetPointInfo();
    }
    return NULL;
  }
예제 #5
0
  /**
   * SetSample sets the image coordinates to the center line and the 
   * given sample.
   *
   * @return PvlGroup* The pertinent data from the Camera class on 
   *         the point. Ownership is passed to caller.
   */
  PvlGroup * CameraPointInfo::SetSample(double sample) {
    if (CheckCube()) {
      camera->SetImage(sample, currentCube->Lines()/2);

      return GetPointInfo();
    }
    return NULL;
  }
예제 #6
0
 /**
  * SetImage sets a sample, line image coordinate in the camera
  * so data can be accessed.
  *
  * @param sample A sample coordinate in or almost in the cube
  * @param line A line coordinate in or almost in the cubei
  *
  * @return PvlGroup* The pertinent data from the Camera class on
  *         the point. Ownership is passed to caller.
  */
 PvlGroup *CameraPointInfo::SetImage(const double sample, const double line,
                                     const bool outside, const bool errors) {
   if (CheckCube()) {
     bool passed = m_camera->SetImage(sample, line);
     return GetPointInfo(passed, outside, errors);
   }
   // Should never get here, error will be thrown in CheckCube()
   return NULL;
 }
예제 #7
0
 /**
  * SetGround sets a latitude, longitude grrund coordinate in the
  * camera so data can be accessed.
  *
  * @param latitude A latitude coordinate in or almost in the
  *                 cube
  * @param longitude A longitude coordinate in or almost in the
  *                  cube
  *
  * @return PvlGroup* The pertinent data from the Camera class on
  *         the point. Ownership is passed to caller.
  */
 PvlGroup *CameraPointInfo::SetGround(const double latitude, const double longitude,
                                      const bool outside, const bool errors) {
   if (CheckCube()) {
     bool passed = m_camera->SetUniversalGround(latitude, longitude);
     return GetPointInfo(passed, outside, errors);
   }
   // Should never get here, error will be thrown in CheckCube()
   return NULL;
 }
예제 #8
0
 /**
  * SetCenter sets the image coordinates to the center of the image.
  *
  * @return PvlGroup* The pertinent data from the Camera class on
  *         the point. Ownership is passed to caller.
  */
 PvlGroup *CameraPointInfo::SetCenter(const bool outside, const bool errors) {
   if (CheckCube()) {
     bool passed = m_camera->SetImage(m_currentCube->sampleCount() / 2.0, 
                                      m_currentCube->lineCount() / 2.0);
     return GetPointInfo(passed, outside, errors);
   }
   // Should never get here, error will be thrown in CheckCube()
   return NULL;
 }