8#ifndef REXPORTSPATIAL_H_INCLUDED
9#define REXPORTSPATIAL_H_INCLUDED
17#include "FMTGraph.hpp"
67 Rcpp::class_<Spatial::FMTCoordinate>(
"FMTcoordinate",
"@DocString(FMTCoordinate)")
68 .constructor(
"@DocString(FMTCoordinate())")
69 .constructor<
unsigned int,
unsigned int>(
"@DocString(FMTCoordinate(unsigned int,unsigned int))")
70 .method(
"lt",&Spatial::FMTCoordinate::operator <,
71 "@DocString(FMTCoordinate::operator<)")
73 "@DocString(FMTCoordinate::getx)")
75 "@DocString(FMTCoordinate::gety)");
78 define_FMTlayer<Core::FMTDevelopment>(
"FMTdevelopmentlayer");
81 Rcpp::class_<Spatial::FMTForest>(
"FMTforest",
"@DocString(FMTForest)")
83 .constructor(
"@DocString(FMTForest())")
86 "@DocString(FMTForest(Spatial::getarea))")
88 "@DocString(FMTForest(Spatial::grow))");
91 Rcpp::class_<Spatial::FMTSpatialSchedule>(
"FMTSpatialSchedule",
"@DocString(FMTSpatialSchedule)")
92 .constructor(
"@DocString(FMTSpatialSchedule())");
124 define_FMTlayer<Graph::FMTLineGraph>(
"FMTgraphlayer");
RCPP_EXPOSED_AS(Spatial::FMTCoordinate)
RCPP_DEFINEVECTOR(Spatial::FMTForest)
RCPP_EXPOSED_WRAP(Spatial::FMTCoordinate)
RCPP_DEFINEMAP(Spatial::FMTCoordinate, Core::FMTDevelopment)
Base class of FMTActualDevelopment and FMTFuturDevelopment representing a forest stand.
Definition: FMTDevelopment.h:44
Simple graph where each action generates a single new vertex (0-—0-—0-—0), used with FMTLayer to simu...
Definition: FMTLineGraph.h:27
Spatially referenced coordinate holding an x and y position on a raster grid.
Definition: FMTCoordinate.h:29
uint16_t getY() const
Return the y position of the coordinate.
uint16_t getX() const
Return the x position of the coordinate.
Base class for a spatial event (FMTsaevent or FMTsesevent): a set of FMTCoordinate corresponding to t...
Definition: FMTEvent.h:28
Spatially referenced layer of Core::FMTDevelopment representing the forest.
Definition: FMTForest.h:33
std::vector< Core::FMTActualDevelopment > getArea() const
Return the actual developments of the forest, aggregating the area of identical developments by cell ...
FMTForest grow() const
Grow every development of the forest by one period.
Definition: FMTParser.h:54
Map containing a line graph for each cell, representing the stand, the action and the transition at e...
Definition: FMTSpatialSchedule.h:50
Definition: RexportCore.h:153
void exportSpatial()
Definition: RexportSpatial.h:63