[Liblas-commits] hg-main-tree: rename to pdal

liblas-commits at liblas.org liblas-commits at liblas.org
Wed Jun 22 12:35:03 EDT 2011


details:   http://hg.libpc.orghg-main-tree/rev/440b2f7c1a9c
changeset: 796:440b2f7c1a9c
user:      Michael P. Gerlek <mpg at flaxen.com>
date:      Wed Jun 22 09:34:57 2011 -0700
description:
rename to pdal

diffstat:

 csharp/libpc_swig_cpp/libpc.i                |  445 ---------------------------
 csharp/libpc_swig_cpp/libpc_swig_cpp.vcxproj |  185 -----------
 csharp/pdal_swig_cpp/libpc.i                 |  445 +++++++++++++++++++++++++++
 csharp/pdal_swig_cpp/libpc_swig_cpp.vcxproj  |  185 +++++++++++
 4 files changed, 630 insertions(+), 630 deletions(-)

diffs (truncated from 1278 to 300 lines):

diff -r 845bcaad6665 -r 440b2f7c1a9c csharp/libpc_swig_cpp/libpc.i
--- a/csharp/libpc_swig_cpp/libpc.i	Tue Jun 21 12:49:00 2011 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,445 +0,0 @@
-/******************************************************************************
- *
- * Project:  libLAS - http://liblas.org - A BSD library for LAS format data.
- * Purpose:  swig/C# bindings for liblas
- * Author:   Michael P. Gerlek (mpg at flaxen.com)
- *
- ******************************************************************************
- * Copyright (c) 2011, Michael P. Gerlek (mpg at flaxen.com)
- *
- * All rights reserved.
- * 
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following 
- * conditions are met:
- * 
- *     * Redistributions of source code must retain the above copyright 
- *       notice, this list of conditions and the following disclaimer.
- *     * Redistributions in binary form must reproduce the above copyright 
- *       notice, this list of conditions and the following disclaimer in 
- *       the documentation and/or other materials provided 
- *       with the distribution.
- *     * Neither the name of the Martin Isenburg or Iowa Department 
- *       of Natural Resources nor the names of its contributors may be 
- *       used to endorse or promote products derived from this software 
- *       without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
- * OF SUCH DAMAGE.
- ****************************************************************************/
- 
-%module pdal_swig_cpp
-
-%{
-#include <iostream>
-
-#include "pdal/pdal_config.hpp"
-
-#include "pdal/Bounds.hpp"
-#include "pdal/Range.hpp"
-
-#include "pdal/Dimension.hpp"
-#include "pdal/DimensionLayout.hpp"
-#include "pdal/Schema.hpp"
-#include "pdal/SchemaLayout.hpp"
-#include "pdal/PointData.hpp"
-
-#include "pdal/Header.hpp"
-#include "pdal/Stage.hpp"
-#include "pdal/Filter.hpp"
-#include "pdal/Producer.hpp"
-
-#include "pdal/DecimationFilter.hpp"
-
-#include "pdal/../../src/drivers/liblas/header.hpp"
-#include "pdal/../../src/drivers/liblas/reader.hpp"
-%}
-
-%include "typemaps.i"
-
-// C# support for std::string
-%include "std_string.i"
-
-// C# support for std::vector<T>
-%include "std_vector.i"
-namespace std
-{
-   %template(std_vector_u8) vector<unsigned char>;
-   %template(std_vector_double) vector<double>;
-   %template(std_vector_Dimension) vector<pdal::Dimension>;
-   %template(std_vector_Range_double) vector<pdal::Range<double> >;
-};
- 
-
-// fix up some missing types
-namespace std
-{
-    typedef unsigned int size_t;
-};
-
-%include "std/std_iostream.i"
-
-namespace boost
-{
-    typedef unsigned char uint8_t;
-    typedef signed char int8_t;
-    typedef unsigned short uint16_t;
-    typedef signed short int16_t;
-    typedef unsigned int uint32_t;
-    typedef signed int int32_t;
-    typedef unsigned long long uint64_t;
-    typedef signed long long int64_t;
-};
-
-
-namespace pdal
-{
-
-template <typename T>
-class Range
-{
-public:
-    typedef T value_type;
-
-    Range();
-    Range(T minimum, T maximum);
-    T getMinimum() const;
-    void setMinimum(T value);
-    T getMaximum() const;
-    void setMaximum(T value);
-    bool equal(Range const& other) const;
-    bool overlaps(Range const& r) const;
-    bool contains(Range const& r) const;
-    bool contains(T v) const;
-    bool empty(void) const;
-    void clip(Range const& r);
-    void grow(T v);
-    void grow(Range const& r);
-    void grow(T lo, T hi);
-    T length() const;
-};
-
-%rename(Range_double) Range<double>;
-%template(Range_double) Range<double>;
-
-
-template <typename T>
-class Vector
-{
-public:
-    typedef T value_type;
-
-    Vector();
-    Vector(T v0);
-    Vector(T v0, T v1);
-    Vector(T v0, T v1, T v2);
-    Vector(std::vector<T> v);
-    T get(std::size_t index);
-    void set(std::size_t index, T v);
-    void set(std::vector<T> v);
-    bool equal(Vector const& other) const;
-    std::size_t size() const;
-};
-
-%rename(Vector_double) Vector<double>;
-%template(Vector_double) Vector<double>;
-
-
-template <typename T>
-class Bounds
-{
-public:
-    typedef typename std::vector< Range<T> > RangeVector;
-
-    Bounds( T minx,
-            T miny,
-            T minz,
-            T maxx,
-            T maxy,
-            T maxz);
-    Bounds(const Vector<T>& minimum, const Vector<T>& maximum);
-    T getMinimum(std::size_t const& index) const;
-    void setMinimum(std::size_t const& index, T v);
-    T getMaximum(std::size_t const& index) const;
-    void setMaximum(std::size_t const& index, T v);
-    Vector<T> getMinimum();
-    Vector<T> getMaximum();
-    RangeVector const& dimensions() const;
-    std::size_t size() const;
-    bool equal(Bounds<T> const& other) const;
-    bool overlaps(Bounds const& other) const;
-    bool contains(Vector<T> point) const;
-    bool contains(Bounds<T> const& other) const;
-    void clip(Bounds const& r);
-    void grow(Bounds const& r);
-    void grow(Vector<T> const& point);
-    T volume() const;
-    bool empty() const;
-};
-
-%rename(Bounds_double) Bounds<double>;
-%template(Bounds_double) Bounds<double>;
-
-
-class Dimension
-{
-public:
-   enum Field
-    {
-        Field_INVALID = 0,
-        Field_X,
-        Field_Y,
-        Field_Z,
-        Field_Intensity,
-        Field_ReturnNumber,
-        Field_NumberOfReturns,
-        Field_ScanDirectionFlag,
-        Field_EdgeOfFlightLine,
-        Field_Classification,
-        Field_ScanAngleRank,
-        Field_UserData,
-        Field_PointSourceId,
-        Field_GpsTime,
-        Field_Red,
-        Field_Green,
-        Field_Blue,
-        Field_WavePacketDescriptorIndex,
-        Field_WaveformDataOffset,
-        Field_ReturnPointWaveformLocation,
-        Field_WaveformXt,
-        Field_WaveformYt,
-        Field_WaveformZt,
-        // ...
-
-        // add more here
-        Field_User1 = 512,
-        Field_User2,
-        Field_User3,
-        Field_User4,
-        Field_User5,
-        Field_User6,
-        Field_User7,
-        Field_User8,
-        Field_User9,
-        // ...
-        // feel free to use your own int here
-
-        Field_LAST = 1023
-    };
-
-    enum DataType
-    {
-        Int8,
-        Uint8,
-        Int16,
-        Uint16,
-        Int32,
-        Uint32,
-        Int64,
-        Uint64,
-        Float,       // 32 bits
-        Double       // 64 bits
-    };
-
-public:
-    Dimension(Field field, DataType type);
-
-    std::string const& getFieldName() const;
-    Field getField() const;
-    DataType getDataType() const;
-    static std::string getDataTypeName(DataType);
-    static DataType getDataTypeFromString(const std::string&);
-    static std::size_t getDataTypeSize(DataType);
-    static bool getDataTypeIsNumeric(DataType);
-    static bool getDataTypeIsSigned(DataType);
-    static bool getDataTypeIsInteger(DataType);
-    static std::string const& getFieldName(Field);
-    std::size_t getByteSize() const;
-    inline std::string getDescription() const;
-    inline void setDescription(std::string const& v);
-    inline bool isNumeric() const;
-    inline bool isSigned() const;
-    inline bool isInteger() const;
-    inline double getMinimum() const;
-    inline void setMinimum(double min);
-    inline double getMaximum() const;
-    inline void setMaximum(double max);
-    inline double getNumericScale() const;
-    inline void setNumericScale(double v);
-    inline double getNumericOffset() const;
-    inline void setNumericOffset(double v);
-
-    template<class T>
-    double applyScaling(T x) const;
-
-    inline bool isFinitePrecision() const;
-    inline void isFinitePrecision(bool v);
-};
-
-%extend Dimension
-{
-    %template(getNumericValue_Int32) applyScaling<boost::int32_t>;
-};
-
-
-class DimensionLayout
-{


More information about the Liblas-commits mailing list