Last change
on this file since 2506 was
2506,
checked in by ldelgass, 13 years ago
|
Add option to send VTK file to be used for streamlines seeds. The seeds can
come from the mesh points or from filling the mesh cells with randomly
placed points. The VTK data file can be any type of dataset that has points
and cells (cells only required if using random placement within cells). Also
add option to use points of main dataset mesh.
|
-
Property svn:eol-style set to
native
|
File size:
883 bytes
|
Line | |
---|
1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
2 | /* |
---|
3 | * Copyright (C) 2011, Purdue Research Foundation |
---|
4 | * |
---|
5 | * Author: George A. Howlett <gah@purdue.edu> |
---|
6 | */ |
---|
7 | |
---|
8 | #ifndef __TRACE_H__ |
---|
9 | #define __TRACE_H__ |
---|
10 | |
---|
11 | #include <syslog.h> |
---|
12 | |
---|
13 | namespace Rappture { |
---|
14 | namespace VtkVis { |
---|
15 | |
---|
16 | extern void InitLog(); |
---|
17 | |
---|
18 | extern void CloseLog(); |
---|
19 | |
---|
20 | extern void LogMessage(int priority, const char *funcname, const char *fileName, int lineNum, |
---|
21 | const char* format, ...); |
---|
22 | |
---|
23 | #define ERROR(...) LogMessage(LOG_ERR, __FUNCTION__, __FILE__, __LINE__, __VA_ARGS__) |
---|
24 | #ifdef WANT_TRACE |
---|
25 | #define TRACE(...) LogMessage(LOG_DEBUG, __FUNCTION__, __FILE__, __LINE__, __VA_ARGS__) |
---|
26 | #else |
---|
27 | #define TRACE(...) |
---|
28 | #endif |
---|
29 | #define WARN(...) LogMessage(LOG_WARNING, __FUNCTION__, __FILE__, __LINE__, __VA_ARGS__) |
---|
30 | #define INFO(...) LogMessage(LOG_INFO, __FUNCTION__, __FILE__, __LINE__, __VA_ARGS__) |
---|
31 | |
---|
32 | } |
---|
33 | } |
---|
34 | |
---|
35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.