OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossim/base/ossimConstants.h>
#include <ossim/base/ossimString.h>
#include <cfloat>
#include <cmath>
#include <istream>
#include <sstream>
#include <string>
#include <vector>
#include <iostream>
#include <algorithm>
#include <iterator>
Go to the source code of this file.
Classes | |
class | ossim::IntFloatBitCoercion |
Class lets us see bit patterns of floats. More... | |
Namespaces | |
NEWMAT | |
ossim | |
This code was derived from https://gist.github.com/mshockwave. | |
Macros | |
#define | ossimREQUIRE(expr) |
#define | ossimENSURE(expr) |
#define | ossimCHECK(expr) |
#define | ossimSTATIC_CHECK(expr, msg) |
Functions | |
OSSIM_DLL std::istream & | ossim::skipws (std::istream &in) |
OSSIM_DLL bool | ossim::isWhiteSpace (int c) |
template<class T > | |
bool | ossim::almostEqual (T x, T y, T tolerance=FLT_EPSILON) |
template<class T > | |
bool | ossim::inInterval (T x, T a, T b) |
template<class T > | |
bool | ossim::inOpenInterval (T x, T a, T b) |
bool | ossim::isnan (const float &v) |
isnan Test for floating point Not A Number (NAN) value. More... | |
bool | ossim::isnan (const double &v) |
ossim::OSSIM_DLL_DATA (const IntFloatBitCoercion) nanValue | |
Declaration of nan part of nan() declared here for inline ossim::nan(). More... | |
double | ossim::nan () |
Method to return ieee floating point double precision NAN. More... | |
template<class T > | |
T | ossim::abs (const T &value) |
template<class S , class T > | |
T | ossim::lerp (S x, T begin, T end) |
template<class T > | |
T | ossim::inverseLerp (T x, T begin, T end) |
template<class S , class T > | |
T | ossim::quaderp (S x, T begin, T middle, T end) |
template<class T > | |
T | ossim::clamp (T x, T a, T b) |
template<class T > | |
T | ossim::wrap (T x, T a, T b) |
template<class T > | |
T | ossim::min (T a, T b) |
template<> | |
ossim_float32 | ossim::min< ossim_float32 > (ossim_float32 a, ossim_float32 b) |
template<> | |
ossim_float64 | ossim::min< ossim_float64 > (ossim_float64 a, ossim_float64 b) |
template<class T > | |
T | ossim::max (T a, T b) |
template<> | |
ossim_float32 | ossim::max< ossim_float32 > (ossim_float32 a, ossim_float32 b) |
template<> | |
ossim_float64 | ossim::max< ossim_float64 > (ossim_float64 a, ossim_float64 b) |
double | ossim::radiansToDegrees (double x) |
double | ossim::degreesToRadians (double x) |
double | ossim::cosd (double x) |
double | ossim::sind (double x) |
double | ossim::tand (double x) |
double | ossim::acosd (double x) |
double | ossim::asind (double x) |
double | ossim::atand (double x) |
double | ossim::atan2d (double y, double x) |
template<class IntType > | |
IntType | ossim::gcd (IntType n, IntType m) |
template<> | |
int | ossim::gcd< int > (int n, int m) |
template<class IntType > | |
IntType | ossim::lcm (IntType n, IntType m) |
template<class T > | |
T | ossim::square (T x) |
template<class T > | |
T | ossim::sgn (T x) |
template<> | |
ossim_float32 | ossim::sgn< ossim_float32 > (ossim_float32 x) |
template<> | |
ossim_float64 | ossim::sgn (ossim_float64 x) |
template<class R , class F > | |
R | ossim::round (F x) |
double | ossim::ft2mtrs (double feet) |
double | ossim::usft2mtrs (double feet) |
double | ossim::mtrs2ft (double meters) |
double | ossim::mtrs2usft (double meters) |
template<class T > | |
std::pair< T, T > | ossim::quadraticRoots (T a, T b, T c) |
template<class T > | |
void | ossim::memClear (T &var, int z=0) |
template<class T > | |
void | ossim::memClear (T *var) |
OSSIM_DLL ossimByteOrder | ossim::byteOrder () |
OSSIM_DLL double | ossim::defaultMin (ossimScalarType scalarType) |
OSSIM_DLL double | ossim::defaultMax (ossimScalarType scalarType) |
OSSIM_DLL double | ossim::defaultNull (ossimScalarType scalarType) |
OSSIM_DLL ossim_uint32 | ossim::scalarSizeInBytes (ossimScalarType scalarType) |
OSSIM_DLL bool | ossim::isSigned (ossimScalarType scalarType) |
OSSIM_DLL ossim_uint32 | ossim::getActualBitsPerPixel (ossimScalarType scalarType) |
Get actual bits per pixel for a given scalar type. More... | |
OSSIM_DLL ossim_uint32 | ossim::getBitsPerPixel (ossimScalarType scalarType) |
Get bits per pixel for a given scalar type. More... | |
OSSIM_DLL void | ossim::defaultTileSize (ossimIpt &tileSize) |
OSSIM_DLL std::string | ossim::convertHtmlSpecialCharactersToNormalCharacter (const std::string &src) |
OSSIM_DLL bool | ossim::matrixToHpr (ossim_float64 hpr[3], const NEWMAT::Matrix &rotation) |
Heading pitch roll extraction from a matrix. More... | |
OSSIM_DLL bool | ossim::matrixToHpr (ossim_float64 hpr[3], const NEWMAT::Matrix &lsrMatrix, const NEWMAT::Matrix &rotationalMatrix) |
Heading pitch roll extraction from a matrix. More... | |
OSSIM_DLL void | ossim::lexQuotedTokens (const std::string &str, ossim_uint32 start, const char *whitespace, const char *quotes, std::vector< std::string > &tokens, bool &unbalancedQuotes) |
OSSIM_DLL void | ossim::toStringList (ossimString &resultStringOfPoints, const std::vector< ossimDpt > &pointList, char separator=' ') |
Will take a vector of ossimDpt and convert to a string list separated by spaces For example: (45,34) (12,34) More... | |
OSSIM_DLL void | ossim::toStringList (ossimString &resultStringOfPoints, const std::vector< ossimIpt > &pointList, char separator=' ') |
OSSIM_DLL void | ossim::toStringList (ossimString &resultStringOfPoints, const std::vector< ossimGpt > &pointList, char seaprator=' ') |
OSSIM_DLL void | ossim::toVector (std::vector< ossimDpt > &result, const ossimString &stringOfPoints) |
Will take a string list separated by spaces and convert to a vector of ossimDpts. More... | |
OSSIM_DLL void | ossim::toVector (std::vector< ossimIpt > &result, const ossimString &stringOfPoints) |
OSSIM_DLL void | ossim::toVector (std::vector< ossimGpt > &result, const ossimString &stringOfPoints) |
template<class T > | |
void | ossim::toSimpleStringList (ossimString &result, const std::vector< T > &valuesList) |
This will output a vector of values inst a string. More... | |
template<> | |
OSSIM_DLL void | ossim::toSimpleStringList (ossimString &result, const std::vector< ossim_uint8 > &valuesList) |
This will output a vector of values inst a string. More... | |
template<> | |
OSSIM_DLL void | ossim::toSimpleStringList (ossimString &result, const std::vector< ossim_float64 > &valuesList) |
template<> | |
OSSIM_DLL void | ossim::toSimpleStringList (ossimString &result, const std::vector< ossim_float32 > &valuesList) |
template<> | |
OSSIM_DLL void | ossim::toSimpleStringList (ossimString &result, const std::vector< ossimString > &valuesList) |
OSSIM_DLL bool | ossim::extractSimpleValues (std::vector< ossimString > &values, const ossimString &stringOfPoints) |
Generic function to extract a list of values into a vector of string where the string of points is of the form: More... | |
template<class T > | |
bool | ossim::toSimpleVector (std::vector< T > &result, const ossimString &stringOfPoints) |
OSSIM_DLL bool | ossim::toSimpleVector (std::vector< ossim_uint32 > &result, const ossimString &stringOfPoints) |
Takes input format of the form: (value1,value2,...,valueN) More... | |
OSSIM_DLL bool | ossim::toSimpleVector (std::vector< ossim_int32 > &result, const ossimString &stringOfPoints) |
Takes input format of the form: (value1,value2,...,valueN) More... | |
OSSIM_DLL bool | ossim::toSimpleVector (std::vector< ossim_uint16 > &result, const ossimString &stringOfPoints) |
Takes input format of the form: (value1,value2,...,valueN) More... | |
OSSIM_DLL bool | ossim::toSimpleVector (std::vector< ossim_int16 > &result, const ossimString &stringOfPoints) |
Takes input format of the form: (value1,value2,...,valueN) More... | |
OSSIM_DLL bool | ossim::toSimpleVector (std::vector< ossim_uint8 > &result, const ossimString &stringOfPoints) |
Takes input format of the form: (value1,value2,...,valueN) More... | |
OSSIM_DLL bool | ossim::toSimpleVector (std::vector< ossim_int8 > &result, const ossimString &stringOfPoints) |
Takes input format of the form: (value1,value2,...,valueN) More... | |
OSSIM_DLL bool | ossim::toSimpleVector (std::vector< ossimString > &result, const ossimString &stringOfStrings) |
Takes input format of the form: (value1,value2,...,valueN) More... | |
OSSIM_DLL ossim_uint32 | ossim::getNumberOfThreads () |
Get the number threads to use from ossimPreferences or ossim::Thread. More... | |
OSSIM_DLL void | ossim::getFormattedTime (const std::string &format, bool gmtFlag, std::string &result) |
Gets the current time. More... | |
OSSIM_DLL ossim_int64 | ossim::getTime () |
Gets the current time. More... | |
OSSIM_DLL ossim_uint32 | ossim::computeLevels (const ossimIrect &rect) |
Computes the number of decimation levels to get to the overview stop dimension. More... | |
#define ossimCHECK | ( | expr | ) |
Definition at line 21 of file ossimCommon.h.
#define ossimENSURE | ( | expr | ) |
Definition at line 20 of file ossimCommon.h.
Referenced by ossim::round().
#define ossimREQUIRE | ( | expr | ) |
Definition at line 19 of file ossimCommon.h.
Referenced by ossim::clamp(), ossim::lexQuotedTokens(), and ossim::wrap().
#define ossimSTATIC_CHECK | ( | expr, | |
msg | |||
) |
Definition at line 22 of file ossimCommon.h.
Referenced by ossim::memClear().