## imported packages (with generics etc.)
import(
  "stats",
  "graphics",
  "psychotools",
  "partykit",
  "Formula"
)
importFrom("grid",
  "gpar", "grid.layout", "unit",
  "grid.lines", "grid.points", "grid.polyline",
  "grid.rect", "grid.text", "grid.xaxis", "grid.yaxis",
  "popViewport", "pushViewport", "upViewport", "viewport"
)

export(
  ## trees
  "raschtree",
  "rstree",
  "pctree",
  "bttree",

  ## panel-generating visualization functions
  "node_profileplot",
  "node_regionplot",
  "node_btplot"

#  ## MPT tree tools
#  "mpttree",
#  "mptModel",
#  "node_mptplot"
)

## methods for raschtree objects
S3method("plot", "raschtree")
S3method("print", "raschtree")
S3method("predict", "raschtree")
S3method("itempar", "raschtree")

## methods for rstree objects
S3method("plot", "rstree")
S3method("print", "rstree")
S3method("predict", "rstree")
S3method("itempar", "rstree")
S3method("threshpar", "rstree")

## methods for pctree objects
S3method("plot", "pctree")
S3method("print", "pctree")
S3method("predict", "pctree")
S3method("itempar", "pctree")
S3method("threshpar", "pctree")

## methods for bttree objects
S3method("plot", "bttree")
S3method("predict", "bttree")
S3method("print", "bttree")
S3method("itempar", "bttree")

# ## methods for mpttree objects
# S3method("plot", "mpttree")
# S3method("print", "mpttree")

# ## methods for mptModel objects
# S3method("bread", "mptModel")
# S3method("estfun", "mptModel")
# S3method("reweight", "mptModel")
