Skip to content

Commit

Permalink
image4: stub version
Browse files Browse the repository at this point in the history
  • Loading branch information
hollasch committed Oct 31, 2024
1 parent 257097a commit ba2e173
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
18 changes: 18 additions & 0 deletions image4/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 4 additions & 0 deletions image4/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Image4 3D Image Utility
====================================================================================================

The `image4` tool works with 3D image cubes generated by `ray4`, the 4D ray tracer.
34 changes: 34 additions & 0 deletions image4/image4.cpp
Original file line number Diff line number Diff line change
@@ -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 <iostream>

using namespace std;

int main() {
wcout << "Image4\n";
}

0 comments on commit ba2e173

Please sign in to comment.