From ba2e173af23335f3b4f95f51ab3b57b5b4d2be1e Mon Sep 17 00:00:00 2001 From: Steve Hollasch Date: Thu, 31 Oct 2024 00:24:50 -0700 Subject: [PATCH] image4: stub version --- image4/CMakeLists.txt | 18 ++++++++++++++++++ image4/README.md | 4 ++++ image4/image4.cpp | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 image4/CMakeLists.txt create mode 100644 image4/README.md create mode 100644 image4/image4.cpp diff --git a/image4/CMakeLists.txt b/image4/CMakeLists.txt new file mode 100644 index 0000000..051cbe0 --- /dev/null +++ b/image4/CMakeLists.txt @@ -0,0 +1,18 @@ +#--------------------------------------------------------------------------------------------------- +# CMake Build Configuration for The Image4 4D Image Tool +#--------------------------------------------------------------------------------------------------- + +cmake_minimum_required(VERSION 3.10.0...3.30.5) + +set (CMAKE_CXX_STANDARD 20) +set (CMAKE_CXX_STANDARD_REQUIRED ON) +set (CMAKE_CXX_EXTENSIONS OFF) + +if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + add_compile_options("/W4") # Enable level-4 warnings + add_compile_options("/wd 4996") # This function or variable may be unsafe. Consider using XXX instead. +endif() + +project (image4 LANGUAGES CXX) + +add_executable (image4 image4.cpp) diff --git a/image4/README.md b/image4/README.md new file mode 100644 index 0000000..91672da --- /dev/null +++ b/image4/README.md @@ -0,0 +1,4 @@ +Image4 3D Image Utility +==================================================================================================== + +The `image4` tool works with 3D image cubes generated by `ray4`, the 4D ray tracer. diff --git a/image4/image4.cpp b/image4/image4.cpp new file mode 100644 index 0000000..541e952 --- /dev/null +++ b/image4/image4.cpp @@ -0,0 +1,34 @@ +//************************************************************************************************** +// Copyright (c) 1991-2024 Steven R Hollasch +// +// MIT License +// +// Permission is hereby granted, free of charge, to any person obtaining a copy of this software +// and associated documentation files (the "Software"), to deal in the Software without +// restriction, including without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the +// Software is furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all copies or +// substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING +// BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +//************************************************************************************************** + +//================================================================================================== +// image4 +// +// This tool manipulates 3D image cubes generated by the `ray4` 4D raytracer. +//================================================================================================== + +#include + +using namespace std; + +int main() { + wcout << "Image4\n"; +}