Logo Search packages:      
Sourcecode: octaviz version File versions  Download package

vtk_get_pointer.cc

/*

## Copyright (C) 2004  Dragan Tubic
## 
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
## 
## This program is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## General Public License for more details. 
## 
## You should have received a copy of the GNU General Public License
## along with this file.  If not, write to the Free Software Foundation,
## 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

*/
// The following must be defined for recent versions of Octave.
#define TYPEID_HAS_CLASS
#include <octave/oct.h>
#include "octaviz.h"
      
DEFUN_DLD (vtk_get_pointer, args, ,
"")
{
  octave_value retval;
  if ( args(0).type_id() != vtk_object::static_type_id() )
    {
      error("The parameter has to be vtk_object");
      return retval;
    }
  
  retval = args(0).uint_value();
  
  return retval;
}


/*
;;; Local Variables: ***
;;; mode: C++ ***
;;; End: ***
*/
 

Generated by  Doxygen 1.6.0   Back to index