2016-09-29 04:43:24 -05:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cvfBase.h"
|
|
|
|
#include "cvfObject.h"
|
|
|
|
#include "cvfVector3.h"
|
|
|
|
|
2019-01-03 06:16:26 -06:00
|
|
|
#include <vector>
|
2016-09-29 04:43:24 -05:00
|
|
|
|
2019-01-03 06:16:26 -06:00
|
|
|
namespace caf
|
|
|
|
{
|
2016-09-29 04:43:24 -05:00
|
|
|
//==================================================================================================
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//==================================================================================================
|
|
|
|
class DisplayCoordTransform : public cvf::Object
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DisplayCoordTransform();
|
|
|
|
|
2020-06-19 00:53:59 -05:00
|
|
|
void setScale( const cvf::Vec3d& scale );
|
|
|
|
void setTranslation( const cvf::Vec3d& translation );
|
2016-09-29 04:43:24 -05:00
|
|
|
|
2020-06-19 00:53:59 -05:00
|
|
|
cvf::Vec3d transformToDisplayCoord( const cvf::Vec3d& domainCoord ) const;
|
|
|
|
std::vector<cvf::Vec3d> transformToDisplayCoords( const std::vector<cvf::Vec3d>& domainCoords ) const;
|
2019-01-03 06:16:26 -06:00
|
|
|
|
2020-06-19 00:53:59 -05:00
|
|
|
cvf::Vec3d translateToDisplayCoord( const cvf::Vec3d& domainCoord ) const;
|
2018-03-12 09:14:22 -05:00
|
|
|
|
2020-06-19 00:53:59 -05:00
|
|
|
cvf::Vec3d scaleToDisplaySize( const cvf::Vec3d& domainSize ) const;
|
2016-09-29 04:43:24 -05:00
|
|
|
|
2020-06-19 00:53:59 -05:00
|
|
|
cvf::Vec3d translateToDomainCoord( const cvf::Vec3d& displayCoord ) const;
|
|
|
|
cvf::Vec3d transformToDomainCoord( const cvf::Vec3d& displayCoord ) const;
|
|
|
|
cvf::Vec3d scaleToDomainSize( const cvf::Vec3d& displaySize ) const;
|
2016-09-29 04:43:47 -05:00
|
|
|
|
2016-09-29 04:43:24 -05:00
|
|
|
private:
|
|
|
|
cvf::Vec3d m_scale;
|
|
|
|
cvf::Vec3d m_translation;
|
|
|
|
};
|
|
|
|
|
2019-01-03 06:16:26 -06:00
|
|
|
} // namespace caf
|