File: itkSpatialObjectBase.wrap

package info (click to toggle)
insighttoolkit4 4.6.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 408,860 kB
  • ctags: 151,204
  • sloc: cpp: 633,356; ansic: 403,038; xml: 51,513; fortran: 34,250; python: 15,831; sh: 2,501; lisp: 2,070; tcl: 1,035; java: 710; makefile: 605; yacc: 323; perl: 200; csh: 195; lex: 177; pascal: 69; cs: 35; ruby: 10
file content (42 lines) | stat: -rw-r--r-- 1,296 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
itk_wrap_simple_class("itk::MetaEvent")

itk_wrap_class("itk::SpatialObject" POINTER_WITH_EXPLICIT_SPECIALIZATION)
  foreach(d ${ITK_WRAP_DIMS})
    itk_wrap_template("${d}" "${d}")
  endforeach(d)
itk_end_wrap_class()

# the file must have a different name than the class name for java
# that's why it is here

# only available for dim 3

itk_wrap_filter_dims(d 3)
if(d)
  itk_wrap_simple_class("itk::CylinderSpatialObject" POINTER_WITH_EXPLICIT_SPECIALIZATION)
endif(d)

#
# hack for ::MetaEvent, the super class of itk::MetaEvent
#
set(WRAPPER_AUTO_INCLUDE_HEADERS OFF)
itk_wrap_named_class("MetaEvent" "itkMetaEvent_Superclass")
  itk_wrap_class_all_generators("MetaEvent")
  # to avoid useless warning: no template can be defined in
  set(WRAPPER_WARN_ABOUT_NO_TEMPLATE OFF)
  itk_wrap_one_type("FORCE_INSTANTIATE" "${WRAPPER_CLASS}" "${WRAPPER_SWIG_NAME}")
itk_end_wrap_class()
# itk_wrap_simple_class_all_generators("MetaEvent")


# must be in the same file than SpatialObject for java wrappers

itk_wrap_class("itk::TreeNode" POINTER)
  foreach(d ${ITK_WRAP_DIMS})
    itk_wrap_template("${ITKM_SO${d}}" "${ITKT_SO${d}}*")
  endforeach(d)
itk_end_wrap_class()

itk_wrap_class("itk::SpatialObjectTreeNode" POINTER)
  set(WRAPPER_TEMPLATES "${itk_Wrap_SpatialObject}")
itk_end_wrap_class()