Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions GISLibrary/AlertCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ namespace DrawingInstructions
AlertReference::AlertReference(std::string alertReference, std::string plan, std::string monitor)
: alertReference(alertReference), plan(plan), monitor(monitor) {}

void AlertReference::init()
{
}

void AlertReference::execute() {
}
void AlertReference::parse(const std::string& input)
Expand Down
2 changes: 2 additions & 0 deletions GISLibrary/AlertCommands.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ namespace DrawingInstructions
{
class AlertReference : public StateCommand {
public:
AlertReference() = default;
AlertReference(std::string alertReference, std::string plan, std::string monitor);
virtual void init() override;
virtual void execute() override;
virtual void parse(const std::string& input) override;
private:
Expand Down
9 changes: 9 additions & 0 deletions GISLibrary/ColourOverrideCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ namespace DrawingInstructions
OverrideColor::OverrideColor(const std::string& colorToken, double colorTransparency, const std::string& overrideToken, double overrideTransparency)
: colorToken(colorToken), colorTransparency(colorTransparency), overrideToken(overrideToken), overrideTransparency(overrideTransparency) {}

void OverrideColor::init()
{
}

void OverrideColor::execute()
{
}
Expand All @@ -63,6 +67,11 @@ namespace DrawingInstructions

OverrideAll::OverrideAll(const std::string& token, double transparency)
: token(token), transparency(transparency) {}

void OverrideAll::init()
{
}

void OverrideAll::execute() {
}
void OverrideAll::parse(const std::string& input)
Expand Down
14 changes: 12 additions & 2 deletions GISLibrary/ColourOverrideCommands.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@

namespace DrawingInstructions
{
class OverrideColor : public StateCommand {
class OverrideColor : public StateCommand
{
public:
OverrideColor() = default;
OverrideColor(const std::string& colorToken, double colorTransparency, const std::string& overrideToken, double overrideTransparency);

public:
void init() override;
void execute() override;
void parse(const std::string& input) override;

Expand All @@ -16,9 +21,14 @@ namespace DrawingInstructions
double overrideTransparency;
};

class OverrideAll : public StateCommand {
class OverrideAll : public StateCommand
{
public:
OverrideAll() = default;
OverrideAll(const std::string& token, double transparency);

public:
void init() override;
void execute() override;
void parse(const std::string& input) override;

Expand Down
23 changes: 23 additions & 0 deletions GISLibrary/CoverageCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ namespace DrawingInstructions {
NumericAnnotation::NumericAnnotation(int decimals, const std::string& championChoice, double buffer)
: decimals(decimals), championChoice(championChoice), buffer(buffer) {}

void NumericAnnotation::init()
{

}

void NumericAnnotation::execute() {
}

Expand All @@ -81,6 +86,11 @@ namespace DrawingInstructions {
SymbolAnnotation::SymbolAnnotation(const std::string& symbolRef, const std::string& rotationAttribute, const std::string& scaleAttribute, const std::string& rotationCRS, double rotationOffset, double rotationFactor, double scaleFactor)
: symbolRef(symbolRef), rotationAttribute(rotationAttribute), scaleAttribute(scaleAttribute), rotationCRS(rotationCRS), rotationOffset(rotationOffset), rotationFactor(rotationFactor), scaleFactor(scaleFactor) {}

void SymbolAnnotation::init()
{

}

void SymbolAnnotation::execute() {
}

Expand All @@ -91,6 +101,11 @@ namespace DrawingInstructions {
CoverageColor::CoverageColor(const std::string& startToken, double startTransparency, const std::string& endToken, double endTransparency, double penWidth)
: startToken(startToken), startTransparency(startTransparency), endToken(endToken), endTransparency(endTransparency), penWidth(penWidth) {}

void CoverageColor::init()
{

}

void CoverageColor::execute() {
}

Expand All @@ -101,6 +116,14 @@ namespace DrawingInstructions {
LookupEntry::LookupEntry(const std::string& label, double lower, double upper, const std::string& closure)
: label(label), lower(lower), upper(upper), closure(closure) {}

void LookupEntry::init()
{
label = "";
lower = 0.0;
upper = 0.0;
closure = "";
}

void LookupEntry::execute() {
}
void LookupEntry::parse(const std::string& input)
Expand Down
10 changes: 9 additions & 1 deletion GISLibrary/CoverageCommands.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ namespace DrawingInstructions
// NumericAnnotation Class
class NumericAnnotation : public StateCommand {
public:
NumericAnnotation() = default;
NumericAnnotation(int decimals, const std::string& championChoice, double buffer);

void init() override;
void execute() override;
void parse(const std::string& input) override;

Expand All @@ -21,11 +23,12 @@ namespace DrawingInstructions
// SymbolAnnotation Class
class SymbolAnnotation : public StateCommand {
public:
SymbolAnnotation() = default;
SymbolAnnotation(const std::string& symbolRef, const std::string& rotationAttribute, const std::string& scaleAttribute,
const std::string& rotationCRS, double rotationOffset, double rotationFactor,
double scaleFactor);


void init() override;
void execute() override;
void parse(const std::string& input) override;

Expand All @@ -42,8 +45,10 @@ namespace DrawingInstructions
// CoverageColor Class
class CoverageColor : public StateCommand {
public:
CoverageColor() = default;
CoverageColor(const std::string& startToken, double startTransparency, const std::string& endToken, double endTransparency, double penWidth);

void init() override;
void execute() override;
void parse(const std::string& input) override;

Expand All @@ -57,7 +62,10 @@ namespace DrawingInstructions

class LookupEntry : public StateCommand {
public:
LookupEntry() = default;
LookupEntry(const std::string& label, double lower, double upper, const std::string& closure);

void init() override;
void execute() override;
void parse(const std::string& input) override;

Expand Down
45 changes: 0 additions & 45 deletions GISLibrary/GF_FeatureType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,51 +28,6 @@ namespace GF

if (other.spatial)
spatial = new SpatialAttributeType(*other.spatial);

if (other.geometry)
{
switch (other.geometry->GetType())
{
case SGeometryType::Point:
{
SPoint* pt = (SPoint*)other.geometry;
geometry = (pt) ? new SPoint(*pt) : nullptr;
}
break;
case SGeometryType::CompositeCurve:
{
SCompositeCurve* cc = (SCompositeCurve*)other.geometry;
geometry = (cc) ? new SCompositeCurve(*cc) : nullptr;
}
break;
case SGeometryType::Surface:
{
SSurface* sf = (SSurface*)other.geometry;
geometry = (sf) ? new SSurface(*sf) : nullptr;
}
break;
case SGeometryType::MultiPoint:
{
SMultiPoint* mp = (SMultiPoint*)other.geometry;
geometry = (mp) ? new SMultiPoint(*mp) : nullptr;
}
break;
case SGeometryType::Curve:
{
SCurve* cv = (SCurve*)other.geometry;
geometry = (cv) ? new SCurve(*cv) : nullptr;
}
break;
case SGeometryType::Coverage:
{
SCoverage* cr = (SCoverage*)other.geometry;
geometry = (cr) ? new SCoverage(*cr) : nullptr;
}
break;
default:
break;
}
}
}

FeatureType::~FeatureType()
Expand Down
5 changes: 5 additions & 0 deletions GISLibrary/GF_NamedType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ namespace GF

}

NamedType::NamedType(std::string code)
{
this->code = code;
}

NamedType::NamedType(const NamedType& other)
{
code = other.code;
Expand Down
1 change: 1 addition & 0 deletions GISLibrary/GF_NamedType.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace GF
{
public:
NamedType();
NamedType(std::string code);
NamedType(const NamedType& other);
virtual ~NamedType();

Expand Down
2 changes: 2 additions & 0 deletions GISLibrary/GISLibrary.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@
<ClCompile Include="R_DDR.cpp" />
<ClCompile Include="R_VectorRecord.cpp" />
<ClCompile Include="S100EditRender.cpp" />
<ClCompile Include="S100Factory.cpp" />
<ClCompile Include="S100GML_NameSpace.cpp" />
<ClCompile Include="S100ExchangeCatalogue.cpp" />
<ClCompile Include="S100H5.cpp" />
Expand Down Expand Up @@ -758,6 +759,7 @@
<ClInclude Include="R_DDR.h" />
<ClInclude Include="R_VectorRecord.h" />
<ClInclude Include="S100EditRender.h" />
<ClInclude Include="S100Factory.h" />
<ClInclude Include="S100GML_NameSpace.h" />
<ClInclude Include="S100ExchangeCatalogue.h" />
<ClInclude Include="S100H5.h" />
Expand Down
6 changes: 6 additions & 0 deletions GISLibrary/GISLibrary.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,9 @@
<ClCompile Include="LuaAttributePathItem.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="S100Factory.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="GISLibrary.h">
Expand Down Expand Up @@ -2114,6 +2117,9 @@
<ClInclude Include="SpatialObjectType.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="S100Factory.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="GISLibrary.rc">
Expand Down
Loading